File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
lucene/facet/src/test/org/apache/lucene/facet/taxonomy Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -242,10 +242,9 @@ public void testIntSumAssociation() throws Exception {
242
242
243
243
public void testIntAssociationRandom () throws Exception {
244
244
245
- FacetsCollector fc = new FacetsCollector ();
246
-
247
245
IndexSearcher searcher = newSearcher (reader );
248
- searcher .search (new TermQuery (new Term ("match" , "yes" )), fc );
246
+ FacetsCollector fc =
247
+ searcher .search (new TermQuery (new Term ("match" , "yes" )), new FacetsCollectorManager ());
249
248
250
249
Map <String , Integer > expected ;
251
250
Facets facets ;
@@ -332,10 +331,9 @@ public void testFloatSumAssociation() throws Exception {
332
331
333
332
public void testFloatAssociationRandom () throws Exception {
334
333
335
- FacetsCollector fc = new FacetsCollector ();
336
-
337
334
IndexSearcher searcher = newSearcher (reader );
338
- searcher .search (new TermQuery (new Term ("match" , "yes" )), fc );
335
+ FacetsCollector fc =
336
+ searcher .search (new TermQuery (new Term ("match" , "yes" )), new FacetsCollectorManager ());
339
337
340
338
Map <String , Float > expected ;
341
339
Facets facets ;
You can’t perform that action at this time.
0 commit comments