Skip to content

Commit

Permalink
undo TestDistributedSearch change by uncommenting commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
cpoerschke committed Feb 16, 2024
1 parent 2501f7b commit cb3c1cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2288,10 +2288,9 @@ public ScoreMode scoreMode() {
}

populateNextCursorMarkFromTopDocs(qr, cmd, topDocs);
// if (cmd.getSort() != null && !(cmd.getQuery() instanceof RankQuery) &&
// needScores) {
// TopFieldCollector.populateScores(topDocs.scoreDocs, this, query);
// }
if (cmd.getSort() != null && !(cmd.getQuery() instanceof RankQuery) && needScores) {
TopFieldCollector.populateScores(topDocs.scoreDocs, this, query);
}
// nDocsReturned = topDocs.scoreDocs.length;
// TODO: Is this correct?
// hitsRelation = topDocs.totalHits.relation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1786,7 +1786,7 @@ private void testMinExactCount() throws Exception {
CommonParams.ROWS,
"200",
CommonParams.SORT,
"id asc");
"score desc, id asc");
assertIsExactHitCount(
"q", "{!cache=false}id:1", CommonParams.MIN_EXACT_COUNT, "1", CommonParams.ROWS, "1");
assertApproximatedHitCount(
Expand Down

0 comments on commit cb3c1cb

Please sign in to comment.