Skip to content

Commit f550856

Browse files
committed
Remove leftover search(Query, Collector) usages in TestTaxonomyFacetAssociations (#13726)
1 parent d0ee23f commit f550856

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyFacetAssociations.java

+4-6
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,9 @@ public void testIntSumAssociation() throws Exception {
241241

242242
public void testIntAssociationRandom() throws Exception {
243243

244-
FacetsCollector fc = new FacetsCollector();
245-
246244
IndexSearcher searcher = newSearcher(reader);
247-
searcher.search(new TermQuery(new Term("match", "yes")), fc);
245+
FacetsCollector fc =
246+
searcher.search(new TermQuery(new Term("match", "yes")), new FacetsCollectorManager());
248247

249248
Map<String, Integer> expected;
250249
Facets facets;
@@ -329,10 +328,9 @@ public void testFloatSumAssociation() throws Exception {
329328

330329
public void testFloatAssociationRandom() throws Exception {
331330

332-
FacetsCollector fc = new FacetsCollector();
333-
334331
IndexSearcher searcher = newSearcher(reader);
335-
searcher.search(new TermQuery(new Term("match", "yes")), fc);
332+
FacetsCollector fc =
333+
searcher.search(new TermQuery(new Term("match", "yes")), new FacetsCollectorManager());
336334

337335
Map<String, Float> expected;
338336
Facets facets;

0 commit comments

Comments
 (0)