-
Couldn't load subscription status.
- Fork 25.6k
Applying Apache Lucene fix: https://github.com/apache/lucene/pull/14732 #128671
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
Applying Apache Lucene fix: https://github.com/apache/lucene/pull/14732 #128671
Conversation
|
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for following up on this, @benwtrent.
The change LGTM
|
Converting to draft, we may never need this as we are looking into bug fix apache lucene releases. |
* Applying Apache Lucene fix: apache/lucene#14732 * fixing test * fixing annot (cherry picked from commit 2a44166)
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
* Applying Apache Lucene fix: apache/lucene#14732 * fixing test * fixing annot
…8764) * Applying Apache Lucene fix: apache/lucene#14732 (#128671) * Applying Apache Lucene fix: apache/lucene#14732 * fixing test * fixing annot (cherry picked from commit 2a44166) * [CI] Auto commit changes from spotless * adding forbidden api check --------- Co-authored-by: elasticsearchmachine <[email protected]>
) * Applying Apache Lucene fix: apache/lucene#14732 (#128671) * Applying Apache Lucene fix: apache/lucene#14732 * fixing test * fixing annot (cherry picked from commit 2a44166) * adding forbidden APIs check
* Applying Apache Lucene fix: apache/lucene#14732 * fixing test * fixing annot
…8671) (elastic#128765) This adds the buggy functions to forbidden API check. Will remove once Lucene is updated. Related elastic#128671
* Applying Apache Lucene fix: apache/lucene#14732 * fixing test * fixing annot
…8671) (elastic#128765) This adds the buggy functions to forbidden API check. Will remove once Lucene is updated. Related elastic#128671
* Applying Apache Lucene fix: apache/lucene#14732 * fixing test * fixing annot
…8671) (elastic#128765) This adds the buggy functions to forbidden API check. Will remove once Lucene is updated. Related elastic#128671
@mayya-sharipova discovered that applying int sort optimizations unveils a subtle bug with missing values and sorted docvalue queries.
Since this isn't yet a bug that anybody can run into (exposed only when doing int optimized sorting), flagging as a non-issue.
This applies the fix in ES for application in: #127968
The main change here is adjusting all our usages of
IndexSortSortedNumericDocValuesRangeQueryto use the copiedXIndexSortSortedNumericDocValuesRangeQueryAdditionally, in Lucene 10, there are usages in
LongField.newRangeQueryandIntField.newRangeQuery, so, to keep from usingIndexSortSortedNumericDocValuesRangeQueryin those instances, usage of those static methods has been replaced with a new group of static methods.I also added an assert in the
XIndexSortSortedNumericDocValuesRangeQueryto force the removal of this query once we upgrade to a new Lucene minor. We don't want this short cut to rot.NOTE: for the backport, I will have to adjust significantly the
IndexSortSortedNumericDocValuesRangeQuery(copying from Lucene 9) as there are various changes in the 10 branch toIndexSortSortedNumericDocValuesRangeQuerythat we don't want to accidentally apply. I will open a separate PR for review there.