-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Upgrade] to lucene-9.4.0-snapshot-ddf0d0a #4183
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9f23e695b0c864fa9722e4f67d950266ca64d37b |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2f6cb0fd7387c6e0db3b86eef7d8677cea3e88a0 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6aff23715a2fba88d844ac83c61decce8ed480bd |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
f82d3eba195134f663865e9de3f511e16fbc7351 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2af6e1996e696b1721a2ec7382bac9aa5096eecb |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ec01d7f91f711abd75b539bb66a437db7cf1ca67 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7041b3fa92b8687a84c4ce666b5718bbbc315db1 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0a5ec9a237c2539e3cbabfadff707252e33b3599 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3920c527fd5eee69e09f614391cef4e05c581c7f |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
d1dfcd42ea257355d5cbc64ac2f47142a550ae52 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ae4757f88e97036b30eb1eac1d21da6dabc85a5e |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
75485e3222b096027463378fe3bb2c8d1f529d25 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
d2a3d1f326f6d3bd6033b5620dc84f3c20a0412d |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2c6f6058c765a955e0544c6050aeee3a5e376e47 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2a155679022106c7db356da32563580d8de043d7 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7c7ac2027a12bf02657ec3a421c8039736b98344 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
25978bb82b9f78537f0511f0be64253be19de6fd |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
e3b6ce41d5bd73fdcc80b5b2a40283c03525aa96 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ae8649d2d01a416acdbe7c29f14b47a5594acb85 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
58049352bb5fc8683c389eb2eb879fb4f16ff9b3 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2d3a8f802e1bb439d945de81ba6b16d01b24d58a |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
11cdb21cf08feb19e074b4a101e1550dfd544379 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ | |
import org.apache.lucene.search.FieldComparator; | ||
import org.apache.lucene.search.Scorable; | ||
import org.apache.lucene.search.SortField; | ||
import org.apache.lucene.search.comparators.TermOrdValComparator; | ||
import org.apache.lucene.util.BitSet; | ||
import org.apache.lucene.util.BytesRef; | ||
import org.opensearch.common.util.BigArrays; | ||
|
@@ -99,7 +100,7 @@ public FieldComparator<?> newComparator(String fieldname, int numHits, boolean e | |
final boolean sortMissingLast = sortMissingLast(missingValue) ^ reversed; | ||
final BytesRef missingBytes = (BytesRef) missingObject(missingValue, reversed); | ||
if (indexFieldData instanceof IndexOrdinalsFieldData) { | ||
return new FieldComparator.TermOrdValComparator(numHits, null, sortMissingLast) { | ||
FieldComparator<?> cmp = new TermOrdValComparator(numHits, indexFieldData.getFieldName(), sortMissingLast, reversed) { | ||
|
||
@Override | ||
protected SortedDocValues getSortedDocValues(LeafReaderContext context, String field) throws IOException { | ||
|
@@ -121,13 +122,9 @@ protected SortedDocValues getSortedDocValues(LeafReaderContext context, String f | |
return new ReplaceMissing(selectedValues, missingBytes); | ||
} | ||
} | ||
|
||
@Override | ||
public void setScorer(Scorable scorer) { | ||
BytesRefFieldComparatorSource.this.setScorer(scorer); | ||
} | ||
Comment on lines
-125
to
-128
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure what was the use of this and when we are removing it will this impact anything. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It doesn't impact anything since the |
||
|
||
}; | ||
cmp.disableSkipping(); | ||
return cmp; | ||
} | ||
|
||
return new FieldComparator.TermValComparator(numHits, null, sortMissingLast) { | ||
|
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.
@nknize This may have caused a regression, see https://build.ci.opensearch.org/job/gradle-check/1941/
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.
(Also in https://build.ci.opensearch.org/job/gradle-check/1752/ associated with this PR)
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.
Disregard the above. Found the problem elsewhere.