Is it possible to query a geo_shape field for shapes of a particular type?
Can you clarify what you mean by
geo_shape is the type.
Sorry, I meant by the GeoJSON type. I have a geo_shape field, where some documents contain a LineString and others a Polygon. I'd like to be able to query for all documents which have a Polygon geo_shape indexed in that field.
I don't think there is a way to do so, and I'll have to change my mapping around and reindex to support this.
You'll need to index the type of
geo_shape into a separate
keyword field; it's not queryable on the
geo_shape field itself as far as I am aware.
Yeah that's what I was thinking too.
Maybe I'll write up a feature request for making the GeoJSON type queryable, I think it could be useful.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.