Query for documents where a property of geo_shape type contains a specific geoshape type (e.g. multipolygon)

Given a property in a document that has been mapped as a geo_shape type, is
it possible to query for documents where that geo_shape is of a particular
type e.g. multipolygon?

In this particular case, the property can be a polygon or a multipolygon,
and I'm trying to construct a query that returns only documents where the
geo_shape is a multipolygon.

I have tried

"query": {
"filtered": {
"query": {
"match_all": {}
"filter": {
"term": { "property.type": "multipolygon" }

but this returns no documents, even though I know that there are documents
with a multipolygon geo_shape for that property in the index.

Is this supported? Any ideas?

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7d3f90ff-74f4-4fef-8096-26fa4c1530a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.