【发布时间】:2021-06-23 17:47:39
【问题描述】:
以下查询获取索引“geoshapes”中具有位置 {32.0, 34.0} 的所有文档,我如何在 java 中执行相同操作?
GET /geoshapes/_search
{
"query": {
"bool": {
"filter": {
"geo_shape": {
"coordinates": {
"relation": "contains",
"shape": {
"coordinates": [
32.0,
34.0
],
"type": "point"
}
}
}
},
"must": {
"match_all": {}
}
}
}
}
【问题讨论】:
标签: java elasticsearch elasticsearch-query