Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ public void testBulkScoringIsDisabled() throws IOException {
iw.commit();

try (IndexReader reader = DirectoryReader.open(dir)) {
IndexSearcher searcher = newSearcher(reader);
// use a plain searcher: newSearcher may wrap with AssertingIndexSearcher, whose
// ScorerSupplier sometimes builds the bulk scorer from scorer() instead of delegating to
// bulkScorer(), which breaks the sanity check below for some seeds
IndexSearcher searcher = new IndexSearcher(reader);
// disable query caching, so that we exercise the search path directly rather than
// any bulk-scoring optimizations the cache may apply internally
searcher.setQueryCache(null);
Expand Down
Loading