benwtrent commented on PR #13198:
URL: https://github.com/apache/lucene/pull/13198#issuecomment-2015144997

   FYI, the test is fixed by doing the following instead:
   
   ```
   --- 
a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyFacetValueSource.java
   +++ 
b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyFacetValueSource.java
   @@ -53,6 +53,7 @@ import org.apache.lucene.search.TopDocs;
    import org.apache.lucene.store.Directory;
    import org.apache.lucene.tests.analysis.MockAnalyzer;
    import org.apache.lucene.tests.index.RandomIndexWriter;
   +import org.apache.lucene.tests.util.LuceneTestCase;
    import org.apache.lucene.tests.util.TestUtil;
    import org.apache.lucene.util.IOUtils;
   
   @@ -597,7 +598,12 @@ public class TestTaxonomyFacetValueSource extends 
FacetTestCase {
        Directory indexDir = newDirectory();
        Directory taxoDir = newDirectory();
   
   -    RandomIndexWriter w = new RandomIndexWriter(random(), indexDir);
   +    RandomIndexWriter w =
   +        new RandomIndexWriter(
   +            random(),
   +            indexDir,
   +            LuceneTestCase.newIndexWriterConfig()
   +                .setMergePolicy(LuceneTestCase.newMergePolicy(random(), 
false)));
        DirectoryTaxonomyWriter tw = new DirectoryTaxonomyWriter(taxoDir);
        FacetsConfig config = new FacetsConfig();
        int numDocs = atLeast(1000);
   benjamintrent@Benjamins-MacBook-Pro-2:
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to