Skip to content

Add CONTAINS relation to geo_shape query #14810

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 18, 2015
Merged

Conversation

nknize
Copy link
Contributor

@nknize nknize commented Nov 17, 2015

At the time of geo_shape query conception, CONTAINS was not yet a supported spatial operation in Lucene. Since it is now available this PR adds ShapeRelation.CONTAINS to GeoShapeQuery. Randomized testing is included and documentation is updated.

closes #14713
Backport closes #17866

@nknize nknize added >feature :Analytics/Geo Indexing, search aggregations of geo points and shapes v5.0.0-alpha1 v2.2.0 review labels Nov 17, 2015
@@ -323,6 +324,34 @@ public void testShapeFilterWithRandomGeoCollection() throws Exception {
assertHitCount(result, 1);
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a unit test instead of an integration test?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added commit that refactors to ESSingleNodeTestCase

@rjernst
Copy link
Member

rjernst commented Nov 18, 2015

LGTM, thanks for the move to single node test!

At the time of geo_shape query conception, CONTAINS was not yet a supported spatial operation in Lucene. Since it is now available this commit adds ShapeRelation.CONTAINS to GeoShapeQuery. Randomized testing is included and documentation is updated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes >feature v2.2.0 v2.3.3 v2.4.0 v5.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error with geo_shape relation CONTAINS geo_shape contains support
3 participants