所以我查询预索引的形状。值索引中的某些形状具有与形状索引完全相同的边框(因为它们是来自它们的子形状)。当我用其中一个形状进行查询时,我总是得到所有只共享相同边界的值,否则没有相交。有没有办法排除这些?
GET value/Value
{
"bool": {
"should": [
{
"geo_shape": {
"locationArea": {
"indexed_shape": {
"id": "AShape1",
"type": "Shapes"
}
},
"_name": null
}
},
{
"geo_shape": {
"locationArea": {
"indexed_shape": {
"id": "AShape2",
"type": "Shapes"
}
},
"_name": null
}
},
{
"geo_shape": {
"locationArea": {
"indexed_shape": {
"id": "AShape3",
"type": "Shapes"
}
},
"_name": null
}
}
]
}
}