【发布时间】:2017-05-10 10:35:22
【问题描述】:
下面是我的弹性查询
GET _search
{
"query": {
"bool": {
"must": {
"match": {
"marriages.marriage_year": "1630"
}
},
"should": {
"match": {
"first_name": {
"query": "mary",
"fuzziness": "2"
}
}
},
"must": {
"range": {
"marriages.marriage_year": {
"gt": "1620",
"lte": "1740"
}
}
}
}
}
}
它正在返回带有marriages.marriage_year= "1630" 的数据,其中 Mary 作为 first_name 作为最高分。我还想在 1620 到 1740 之间包含marriages.marriage_year,这些未显示在结果中。它仅显示 marriage_year 1630 的数据
【问题讨论】:
标签: elasticsearch kibana nest elasticsearch-marvel