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.
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.
Hello, I was wondering with the latest release of ES does it support Polygon indexes now? I was reading that Lucene 4.0 seemed to support it with JTS extensions. Do you know if this is the case with ES?
Does anyone have any experience with the accuracy of these queries? Would it compare to say an oracle or postgres polygon query? I'm interested in Point in Polygon accuracy as well as polygon in polygon search.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.