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 ?
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 ?
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.