mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-06 02:49:35 +00:00
Fix NormalizerAgg test searcher wrapping (#57171)
The searcher was randomly wrapping its reader as slow, parallel, or filtered. This was causing casting issues in the normalizer tests. By removing the wrapping, the problem goes away. Closes #57164
This commit is contained in:
parent
41629b7bfd
commit
81060820e9
@ -161,7 +161,7 @@ public class NormalizeAggregatorTests extends AggregatorTestCase {
|
||||
termFieldType.setHasDocValues(true);
|
||||
|
||||
try (IndexReader indexReader = DirectoryReader.open(directory)) {
|
||||
IndexSearcher indexSearcher = newSearcher(indexReader, true, true);
|
||||
IndexSearcher indexSearcher = newIndexSearcher(indexReader);
|
||||
InternalAggregation internalAggregation = searchAndReduce(indexSearcher, query, aggBuilder, dateFieldType,
|
||||
valueFieldType, termFieldType);
|
||||
aggAssertion.accept(internalAggregation);
|
||||
|
Loading…
x
Reference in New Issue
Block a user