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

Add TermsRangeQuery #2529

Merged
merged 1 commit into from
Apr 26, 2024
Merged

Add TermsRangeQuery #2529

merged 1 commit into from
Apr 26, 2024

Conversation

flobernd
Copy link
Member

@flobernd flobernd commented Apr 25, 2024

Currently, we only support DateRangeQuery and NumberRangeQuery. According to the documentation, range queries can as well be used with text and keyword fields.

Related to: elastic/elasticsearch-net#8004

Copy link
Member

@pquentin pquentin left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM.

I think it also works with other types, like booleans or IP addresses (covered by strings?) but I'm not sure and this addition is correct.

Also note that by default such range queries are not allowed: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html#query-dsl-allow-expensive-queries

@flobernd flobernd merged commit 650fd11 into main Apr 26, 2024
5 checks passed
@flobernd flobernd deleted the add-termsrangequery branch April 26, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants