Folks,
I’m trying to run a geo_shape filter query using a pre-indexed shape, and it’s
failing for reasons that I cannot identify. This is with Elasticsearch
v1.4.1-1. I’ve documented how to reproduce the problem at
<https://gist.github.com/waldoj/004f77755179d862fe3a>.
The pre-indexed shapes are GeoJSON converted from Census Bureau municipal
geodata. The indexed documents are state corporate registration records, each
of which have an address that I’ve geocoded into a latitude and longitude (a
field named “location”). The indexed shapes are in a "geometry”:{
“coordinates": { [1, 2] [3, 5] } } format. In the query I specify "path":
“geometry”, which generates this error:
"Failed to find geo_shape field [location]].”
Based on the error, it looks like Elasticsearch is looking for *shapes* that
fall within the pre-indexed shape, rather than *points*, and so while the
indexed documents have a geo_point field named “location,” there’s no geo_shape
field of that name. FWIW, I’m following the instructions in the manual at
<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-geo-shape-filter.html#_pre_indexed_shape>.
I’d be grateful to anybody who could offer some guidance. Thank you.
Best,
Waldo
---
Waldo Jaquith
Director
U.S. Open Data Institute
http://usodi.org/
202-719-5315
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/69F9EFA2-DF56-474D-8120-F5DBF0CA3877%40usodi.org.
For more options, visit https://groups.google.com/d/optout.