Skip to content
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

HSEARCH-4999 Use geo_shape instead of geo_polygon in Elasticsearch spatial predicates #3826

Conversation

marko-bekhta
Copy link
Member

https://hibernate.atlassian.net/browse/HSEARCH-4999

Luckily, Elasticsearch 7.10 already support this query 🎉. I've tried using the relation operator (WITHIN/CONTAINS)
(https://www.elastic.co/guide/en/elasticsearch/reference/8.11/query-dsl-geo-shape-query.html#geo-shape-spatial-relations) but since older Elasticsearch versions (e.g. 7.10 ...) can only work with the default INTERSECTS value I've removed it 😃
tested it locally with Elasticsearch 7.10.1/7.17.14/8.11.0 and OpenSearch 1.3.13/2.11.0

Copy link

sonarcloud bot commented Nov 10, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@yrodiere yrodiere left a comment

Choose a reason for hiding this comment

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

Works for me if this gets rid of the warnings; thanks!

@yrodiere yrodiere added the Waiting for CI Ready to merge once CI passes label Nov 10, 2023
@yrodiere yrodiere merged commit eb12251 into hibernate:main Nov 10, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting for CI Ready to merge once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants