【发布时间】:2017-07-18 04:22:04
【问题描述】:
我有以下格式的 cloudsearch 文档,我正在使用简单的 queryParser。因此,当我搜索“abc”时,我得到两个结果,因为两个文档包含名字为“abc”。我怎样才能把它提升到一个新的水平,并在查询中添加一个日期范围?例如,我想在开始 >= date1 和开始
{
"id": "d48810e8-082a-4422-887c-a3a69aa95f3e",
"fields": {
"origin": [
"http://localhost:3006"
],
"firstname": [
"abc"
],
"started": [
"2017-03-30T15:45:03.848Z"
],
"lastname": [
"xyz"
]
}
},
{
"id": "47ae007e-41ec-4110-82f1-716d4e48670c",
"fields": {
"origin": [
"http://localhost:3006"
],
"firstname": [
"opq"
],
"lastname": [
"rst"
],
"started": [
"2017-01-09T20:00:47.264Z"
]
}
},
{
"id": "6a6df5be-9518-44f4-8b9d-62ff21c5e89c",
"fields": {
"origin": [
"http://localhost:3006"
],
"firstname": [
"abc"
],
"lastname": [
"xyz"
],
"started": [
"2017-01-18T19:09:01.318Z"
]
}
}
【问题讨论】:
标签: amazon-web-services amazon-cloudsearch