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

Range queries on range fields accept relation: disjoint but treat it as relation: intersects #26575

Closed
jpountz opened this issue Sep 11, 2017 · 2 comments
Labels
>bug good first issue low hanging fruit help wanted adoptme :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch

Comments

@jpountz
Copy link
Contributor

jpountz commented Sep 11, 2017

This can be confusing since disjoint means the opposite of intersects.

@jpountz jpountz added :Search Foundations/Mapping Index mappings, including merging and defining field types help wanted adoptme >bug good first issue low hanging fruit labels Sep 11, 2017
@liketic
Copy link
Contributor

liketic commented Sep 13, 2017

Hi @jpountz Seems like this is fixed in #26552 What need to do to fix this? Thanks.

@jpountz
Copy link
Contributor Author

jpountz commented Sep 13, 2017

@liketic I don't think it is fixed. Documentation states that the relation can be of of intersects, contains and within (https://www.elastic.co/guide/en/elasticsearch/reference/current/range.html) so we need to fix RangeQueryBuilder to reject other values.

@javanna javanna added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug good first issue low hanging fruit help wanted adoptme :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch
Projects
None yet
Development

No branches or pull requests

3 participants