Skip to content

Commit

Permalink
Remove leftover search(Query, Collector) usages in TestTaxonomyFacetA…
Browse files Browse the repository at this point in the history
…ssociations (#13726)
  • Loading branch information
javanna authored Sep 6, 2024
1 parent d7dc57d commit 0b8ae22
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,9 @@ public void testIntSumAssociation() throws Exception {

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;
Expand Down Expand Up @@ -332,10 +331,9 @@ public void testFloatSumAssociation() throws Exception {

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;
Expand Down

0 comments on commit 0b8ae22

Please sign in to comment.