{
"geo_bounding_box": {
"location": {
"top_right": {
"lat": 4.482137,
"lon": 51.0355306
},
"bottom_left": {
"lat": 4.482137,
"lon": 51.0146768
}
}
}
} .
轉換上述搜索過濾器,以彈性搜索查詢DSL(Python)的如何在彈性搜索中構建搜索查詢在python中查詢地理點的DSL?
我可以應用直接過濾器。但無法找到geo_points的方法? – user2883376
.filter(「geo_bounding_box」,location = {「top_right」:{「lat」:4.482137,「lon」:51.0355306}, 「bottom_left」:{「lat」:4.482137,「lon」:51.0146768}})。 – user2883376