Hello,
Thanks in advance for looking at my question.
I would like to store a collection of polygons (each point of the polygon
being a lat, long position). Next, given a point (lat, long) say p I would
like to know which polygons enclose/contain point p.
Does elastic search support such a query? If not what is the closest thing
elastic search can support?
On Thursday, November 8, 2012 7:37:03 AM UTC+1, Ali wrote:
Hello,
Thanks in advance for looking at my question.
I would like to store a collection of polygons (each point of the polygon
being a lat, long position). Next, given a point (lat, long) say p I would
like to know which polygons enclose/contain point p.
Does Elasticsearch support such a query? If not what is the closest
thing Elasticsearch can support?
Thanks for your response. It looks like this may not suffice my use case.
What I want to do is somewhat the opposite, that is
I store a bunch of polygons and then query for polygons that include a
given point (lat, long). Please correct me if I misunderstood.
Thanks for your help in advance.
-Ali
On Thursday, November 8, 2012 1:50:01 AM UTC-8, simonw wrote:
On Thursday, November 8, 2012 7:37:03 AM UTC+1, Ali wrote:
Hello,
Thanks in advance for looking at my question.
I would like to store a collection of polygons (each point of the polygon
being a lat, long position). Next, given a point (lat, long) say p I would
like to know which polygons enclose/contain point p.
Does Elasticsearch support such a query? If not what is the closest
thing Elasticsearch can support?
Thanks for your response. It looks like this may not suffice my use
case. What I want to do is somewhat the opposite, that is
I store a bunch of polygons and then query for polygons that include a
given point (lat, long). Please correct me if I misunderstood.
Thanks for your help in advance.
The geoshape support in v0.20 sounds like what you need:
Should be released in the next few weeks I'd imagine
clint
-Ali
On Thursday, November 8, 2012 1:50:01 AM UTC-8, simonw wrote:
hey,
take a look
at http://www.elasticsearch.org/guide/reference/query-dsl/geo-polygon-filter.html maybe this is sufficient for your usecase?
simon
On Thursday, November 8, 2012 7:37:03 AM UTC+1, Ali wrote:
Hello,
Thanks in advance for looking at my question.
I would like to store a collection of polygons (each
point of the polygon being a lat, long position).
Next, given a point (lat, long) say p I would like to
know which polygons enclose/contain point p.
Does elastic search support such a query? If not what
is the closest thing elastic search can support?
Thanks,
Ali
v0.20 should have been released this week since there were no issues with
the release candidates. I have no idea when it will actually be released,
but hopefully it won't be a few weeks.
Thank you Clint, that should solve my use case.
-Ali
On Thursday, November 8, 2012 10:07:53 AM UTC-8, Clinton Gormley wrote:
Hi Ali
Thanks for your response. It looks like this may not suffice my use
case. What I want to do is somewhat the opposite, that is
I store a bunch of polygons and then query for polygons that include a
given point (lat, long). Please correct me if I misunderstood.
Thanks for your help in advance.
The geoshape support in v0.20 sounds like what you need:
simon
On Thursday, November 8, 2012 7:37:03 AM UTC+1, Ali wrote:
Hello,
Thanks in advance for looking at my question.
I would like to store a collection of polygons (each
point of the polygon being a lat, long position).
Next, given a point (lat, long) say p I would like to
know which polygons enclose/contain point p.
Does elastic search support such a query? If not what
is the closest thing elastic search can support?
Thanks,
Ali
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.