Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lucene/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ Optimizations

* GITHUB#15597, GITHUB#15777: Reduce memory usage of NeighborArray (Viliam Durina)

* GITHUB#12324: ELiminate redundant work in AbstractKnnVectorQuery.rewrite (Mike Sokolov)

Bug Fixes
---------------------
* GITHUB#14049: Randomize KNN codec params in RandomCodec. Fixes scalar quantization div-by-zero
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ public Query rewrite(IndexSearcher indexSearcher) throws IOException {
}
assert leafReaderContexts.size() == tasks.size();
assert perLeafResults.size() == reader.leaves().size();
topK = runSearchTasks(tasks, taskExecutor, perLeafResults, leafReaderContexts);
if (tasks.size() > 0) {
topK = runSearchTasks(tasks, taskExecutor, perLeafResults, leafReaderContexts);
}
}
if (topK.scoreDocs.length == 0) {
return MatchNoDocsQuery.INSTANCE;
Expand Down
Loading