按几何类型过滤elasticsearch geo_shape

时间:2019-06-12 06:24:29

标签: elasticsearch elasticsearch-geo-shape

我有Elasticsearch(geoJSON)文档,其中包含不同类型的geo_shape字段(称为几何):其中一些是点,另一些是线串。

是否只能搜索线串?

我尝试了以下操作,但未返回任何结果。

{
    "query": {
        "term": {
            "geometry.type": "linestring"
        }  
    }
}

0 个答案:

没有答案