-
Notifications
You must be signed in to change notification settings - Fork 690
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
SOLR-17631: Upgrade main to Lucene 10.x #3053
base: main
Are you sure you want to change the base?
Conversation
…tor, more scorerSupplier() fixes
…tor, more scorerSupplier() fixes
public int docID() { | ||
return docId; | ||
} |
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.
Likely this can be removed, haven't tried it yet though.
public int docID() { | |
return docId; | |
} |
public int docID() { | ||
return docid; | ||
} |
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.
public int docID() { | |
return docid; | |
} |
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.
69 / 147 files viewed
assertEquals("1", searcher.storedFields().document(hits.scoreDocs[0].doc).get("id")); | ||
assertEquals("0", searcher.storedFields().document(hits.scoreDocs[1].doc).get("id")); |
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.
Elsewhere outside of modules/ltr
similar changes are needed too, #3149 proposes to separately replace.
…ne-10 Resolved Conflicts: solr/core/src/java/org/apache/solr/schema/DenseVectorField.java solr/core/src/test/org/apache/solr/core/TestCodecSupport.java
@@ -603,7 +566,7 @@ protected Integer getNumberOfGroups() { | |||
protected void populateScoresIfNecessary() throws IOException { | |||
if (needScores) { | |||
for (GroupDocs<?> groups : result.groups) { | |||
TopFieldCollector.populateScores(groups.scoreDocs, searcher, query); | |||
TopFieldCollector.populateScores(groups.scoreDocs(), searcher, query); |
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.
Just leaving a note here from investigating the grouping-related test failures, the filling in of the scores here does not influence the maxScore
of a group and that seems to be wrong (always 1 possibly?) and so the groups are ordered wrongly.
SOLR-17631
Upgrade main to Lucene 10.x
Right now, I've fixed all compilation issues with core and test modules. Other modules still don't compile.
On the tests front, I've fixed a few tests. There are the tests that still fail: