Skip to content

Conversation

jimczi
Copy link
Contributor

@jimczi jimczi commented Oct 7, 2024

This PR applies a temporary patch to fix an issue with ordered and unordered intervals source. The flattening that is applied in Lucene modifies the final gap preventing valid queries to match. The fix already exists in Lucene but will be released in Lucene 10.x later this year. Since the bug prevents the combination of ordered and unordered intervals with gaps, this change applies a workaround to ensure that the bug is fixed in Elasticsearch 8x.

Relates #113554

This PR applies a temporary patch to fix an issue with ordered and unordered intervals source. The flattening that is applied in Lucene modifies the final gap preventing valid queries to match. The fix already exists in Lucene but will be released in Lucene 10.x later this year. Since the bug prevents the combination of ordered and unordered intervals with gaps, this change applies a workaround to ensure that the bug is fixed in Elasticsearch 8x. Relates elastic#113554
@jimczi jimczi requested a review from mayya-sharipova October 7, 2024 13:22
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Oct 7, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@elasticsearchmachine
Copy link
Collaborator

Hi @jimczi, I've created a changelog YAML for you.

Copy link
Contributor

@mayya-sharipova mayya-sharipova left a comment

Choose a reason for hiding this comment

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

@jimczi Thanks for the fix. +1 to merge after fixing IntervalQueryBuilderTests to add a new DelegateIntervalsSource class.

@jimczi jimczi added the auto-backport Automatically create backport pull requests when merged label Oct 9, 2024
@jimczi jimczi merged commit 1becb3e into elastic:main Oct 9, 2024
16 checks passed
@jimczi jimczi deleted the intervals_flattening branch October 9, 2024 21:13
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x
jimczi added a commit to jimczi/elasticsearch that referenced this pull request Oct 9, 2024
…#114234) This PR applies a temporary patch to fix an issue with ordered and unordered intervals source. The flattening that is applied in Lucene modifies the final gap preventing valid queries to match. The fix already exists in Lucene but will be released in Lucene 10.x later this year. Since the bug prevents the combination of ordered and unordered intervals with gaps, this change applies a workaround to ensure that the bug is fixed in Elasticsearch 8x. Relates elastic#113554
elasticsearchmachine pushed a commit that referenced this pull request Oct 9, 2024
#114458) This PR applies a temporary patch to fix an issue with ordered and unordered intervals source. The flattening that is applied in Lucene modifies the final gap preventing valid queries to match. The fix already exists in Lucene but will be released in Lucene 10.x later this year. Since the bug prevents the combination of ordered and unordered intervals with gaps, this change applies a workaround to ensure that the bug is fixed in Elasticsearch 8x. Relates #113554
matthewabbott pushed a commit to matthewabbott/elasticsearch that referenced this pull request Oct 10, 2024
…#114234) This PR applies a temporary patch to fix an issue with ordered and unordered intervals source. The flattening that is applied in Lucene modifies the final gap preventing valid queries to match. The fix already exists in Lucene but will be released in Lucene 10.x later this year. Since the bug prevents the combination of ordered and unordered intervals with gaps, this change applies a workaround to ensure that the bug is fixed in Elasticsearch 8x. Relates elastic#113554
davidkyle pushed a commit to davidkyle/elasticsearch that referenced this pull request Oct 13, 2024
…#114234) This PR applies a temporary patch to fix an issue with ordered and unordered intervals source. The flattening that is applied in Lucene modifies the final gap preventing valid queries to match. The fix already exists in Lucene but will be released in Lucene 10.x later this year. Since the bug prevents the combination of ordered and unordered intervals with gaps, this change applies a workaround to ensure that the bug is fixed in Elasticsearch 8x. Relates elastic#113554
mayya-sharipova added a commit to mayya-sharipova/elasticsearch that referenced this pull request Jan 10, 2025
PR elastic#114234 introduced XIntervals as a temp solution while waiting for a fix in Lucene 10.1. With Lucene 10.1 we don't need this class anymore. Related to elastic#113554
mayya-sharipova added a commit that referenced this pull request Jan 22, 2025
PR #114234 introduced XIntervals as a temp solution while waiting for a fix in Lucene 10.1. With Lucene 10.1 we don't need this class anymore. Related to #113554
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >bug :Search Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v8.16.0 v9.0.0

3 participants