From 2a78b0a19fb6584944d92ad34a91f2814b3dcbe4 Mon Sep 17 00:00:00 2001 From: Jim Ferenczi Date: Thu, 15 Jun 2017 18:13:38 +0200 Subject: [PATCH] [Test] Make sure that SearchAfterSortedDocQueryTests uses a single threaded searcher --- .../apache/lucene/queries/SearchAfterSortedDocQueryTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/java/org/apache/lucene/queries/SearchAfterSortedDocQueryTests.java b/core/src/test/java/org/apache/lucene/queries/SearchAfterSortedDocQueryTests.java index 25c5ff6fa21..0405849554e 100644 --- a/core/src/test/java/org/apache/lucene/queries/SearchAfterSortedDocQueryTests.java +++ b/core/src/test/java/org/apache/lucene/queries/SearchAfterSortedDocQueryTests.java @@ -98,7 +98,7 @@ public class SearchAfterSortedDocQueryTests extends ESTestCase { } } final IndexReader reader = w.getReader(); - final IndexSearcher searcher = newSearcher(reader); + final IndexSearcher searcher = new IndexSearcher(reader); int step = randomIntBetween(1, 10); FixedBitSet bitSet = new FixedBitSet(numDocs);