Skip to content

Apache Lucene open-source search software

Remove leftover search(Query, Collector) usages in TestTaxonomyFacetAssociations (#13726)

Luca Cavanna0b8ae220beda
diff --git a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyFacetAssociations.java b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyFacetAssociations.java
index c452a01292e..bd2d091a2fd 100644
--- a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyFacetAssociations.java
+++ b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyFacetAssociations.java
@@ -242,10 +242,9 @@ public class TestTaxonomyFacetAssociations extends FacetTestCase {
public void testIntAssociationRandom() throws Exception {
- FacetsCollector fc = new FacetsCollector();
-
IndexSearcher searcher = newSearcher(reader);
- searcher.search(new TermQuery(new Term("match", "yes")), fc);
+ FacetsCollector fc =
+ searcher.search(new TermQuery(new Term("match", "yes")), new FacetsCollectorManager());
Map<String, Integer> expected;
Facets facets;
@@ -332,10 +331,9 @@ public class TestTaxonomyFacetAssociations extends FacetTestCase {
public void testFloatAssociationRandom() throws Exception {
- FacetsCollector fc = new FacetsCollector();
-
IndexSearcher searcher = newSearcher(reader);
- searcher.search(new TermQuery(new Term("match", "yes")), fc);
+ FacetsCollector fc =
+ searcher.search(new TermQuery(new Term("match", "yes")), new FacetsCollectorManager());
Map<String, Float> expected;
Facets facets;