From 14fa4ac1d001fa4678f7558491bf9bb70dbee0fa Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Thu, 4 Feb 2021 18:08:43 +0700 Subject: [PATCH] BUG: Lucene.Net.Tests.Facet.Taxonomy.TestTaxonomyFacetCounts2::BeforeClass(): Added missing line to set the merge policy to NoMergePolicy.COMPOUND_FILES (#259) --- .../Taxonomy/TestTaxonomyFacetCounts2.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Lucene.Net.Tests.Facet/Taxonomy/TestTaxonomyFacetCounts2.cs b/src/Lucene.Net.Tests.Facet/Taxonomy/TestTaxonomyFacetCounts2.cs index 33c13886f6..1241ad6019 100644 --- a/src/Lucene.Net.Tests.Facet/Taxonomy/TestTaxonomyFacetCounts2.cs +++ b/src/Lucene.Net.Tests.Facet/Taxonomy/TestTaxonomyFacetCounts2.cs @@ -1,4 +1,5 @@ using J2N.Collections.Generic.Extensions; +using Lucene.Net.Index; using Lucene.Net.Support; using NUnit.Framework; using System; @@ -262,7 +263,7 @@ public override void BeforeClass() // LUCENENET specific - renamed from BeforeCl // 4. Segment w/ categories, but only some results IndexWriterConfig conf = NewIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random)); - //conf.MergePolicy = NoMergePolicy.INSTANCE; // prevent merges, so we can control the index segments + conf.MergePolicy = NoMergePolicy.COMPOUND_FILES; // prevent merges, so we can control the index segments IndexWriter indexWriter = new IndexWriter(indexDir, conf); ITaxonomyWriter taxoWriter = new DirectoryTaxonomyWriter(taxoDir);