I have one index with multiple types, each type has a different mapping,
but they share a common geo_point field called location.
How can I query across all types with a geo_distance filter?
Here's a sample query:
curl -XGET http://localhost:9200/myindex/_all/_search -d '
It fails to find the location field (QueryParsingException[[myindex] failed
to find geo_point field [location]]; }]").
If I specify a type in the URL
(http://localhost:9200/myindex/mytype/_search) then it works, but if I
specify a type in the geo_distance filter (mytype.location) and leave the
URL as above it finds nothing.