There is only support for single geo points, not polygons to index, on
those single geo points, you can do distance, bounding box, and polygon.
On Sun, May 6, 2012 at 5:09 AM, Felix guohangao@gmail.com wrote:
Hi all,
I am pretty new to elasticsearch and would like to know how to add
documents to be indexed with geo spatial features of a polygon and be
able to search for all documents that is covered by another polygon.
For example, how do I add a document like this to be indexed.
{"Title": "lake", "loc":{"polygon":[12,24],[21,32],[26, 44],[22,38],
[15 29] }}when this document is added to the index, how do I search for it when
another polygon is given.Thanks,
Felix