Add support for search within polygon Geoshape#441
Add support for search within polygon Geoshape#441kainosnoema wants to merge 1 commit intothinkaurelius:masterfrom
Conversation
The current version of ElasticSearch supports the GeoPolygonFilter, so it's trivial to add support for polygons with an arbitray number of boundary points. Signed-off-by: Evan Owen <[email protected]>
|
I'm not sure exactly why the Travis build is failing, but it doesn't seem to be related to this commit: |
|
Yes, travis is overwhelmed by the complexity of the Titan build and will On Fri, Oct 18, 2013 at 9:57 PM, Evan Owen [email protected] wrote:
Matthias Broecheler |
The current version of ElasticSearch supports the GeoPolygonFilter, so it was trivial to add support for polygons with an arbitray number of boundary points. Works great. I added a test and the suite passes.
The trickiest part of this is the interface to easily create a polygon Geoshape with both Java and Groovy syntax. This is where I ended up (seemed consistent with the other constructors), but I'm open to suggestions:
We could support
ArrayList<double>(2)arguments to make the Groovy a bit nicer, but it would increase the complexity. Thoughts?