Newbie question

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

--

hey,

take a look at
Elasticsearch Platform — Find real-time answers at scale | Elastic 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 Elasticsearch support such a query? If not what is the closest
thing Elasticsearch can support?

Thanks,
Ali

--

Hi Simon,

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:

hey,

take a look at
Elasticsearch Platform — Find real-time answers at scale | Elastic 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 Elasticsearch support such a query? If not what is the closest
thing Elasticsearch can support?

Thanks,
Ali

--

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:

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.

RC1 is available in Maven/GitHub.

--
Ivan

On Thu, Nov 8, 2012 at 10:07 AM, Clinton Gormley clint@traveljury.comwrote:

The geoshape support in v0.20 sounds like what you need:

Support GeoShape searching and indexing · Issue #2169 · elastic/elasticsearch · GitHub

Should be released in the next few weeks I'd imagine

clint

--

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:

Support GeoShape searching and indexing · Issue #2169 · elastic/elasticsearch · GitHub

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 

Elasticsearch Platform — Find real-time answers at scale | Elastic 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 

--

--