Indexed_shape and subquery


(Alain Perry) #1

Hello list,

I'm wondering how to achieve something that I'm gessing is not a rare feat,
but I can't fathom how to manage it.

Basically, what I would like to do is find the equivalent of the
index_shape variant of the geo_shape filter, but using more than one
indexed geo_shapes.

Let's say I have an indexed called "regions", with a "tag" field and a
geo_shape field.

I also have a number of POIs indexed as geo_shapes. I want to retrieve
every POI inside regions tagged with a specific term. Appart from first
querying on the region index and then using an "or" filter, which will make
for a huge request, is there a way to ask ES for that result at the moment ?

Thanks for your time.

--
Alain

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/ee66dd69-1bdc-402f-9121-4751c2f1dc8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Alexander Reelsen) #2

Hey,

correct, you need to specify a number of geo_shape filters inside of an or
filter. Maybe it is easier to simply tag the POI entities as well?

--Alex

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8nJuOXc1MwL_PbTWD%2B72jDYRzHM9Tc80dEuxabdRc5rA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(Alain Perry) #3

It would have been if I didn't have a variety of shapes in which to check
for the presence of POIs, with some of these shapes changing on a regular
basis...

I was looking at the structure of the geo_shape filter and wondering how
hard it would be to let the user enter a subquery whose return geo_shapes
would be merged in a shapecollection ? Should I create a "wishlist" entry
on github ?

Thanks for your help.

--
Alain Perry

2014-04-26 2:27 GMT+02:00 Alexander Reelsen alr@spinscale.de:

Hey,

correct, you need to specify a number of geo_shape filters inside of an or
filter. Maybe it is easier to simply tag the POI entities as well?

--Alex

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/15CtXlCHft4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAGCwEM8nJuOXc1MwL_PbTWD%2B72jDYRzHM9Tc80dEuxabdRc5rA%40mail.gmail.comhttps://groups.google.com/d/msgid/elasticsearch/CAGCwEM8nJuOXc1MwL_PbTWD%2B72jDYRzHM9Tc80dEuxabdRc5rA%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAHJSR%3D%3D8%3DRWf%2BoByX4z4JG4QoxJ5WwQAfjoM3o8n%3DbO9%2Ba5Lkg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #4