Skip to content

Commit

Permalink
BUG: Lucene.Net.Tests.Facet.Taxonomy.TestTaxonomyFacetCounts2::Before…
Browse files Browse the repository at this point in the history
…Class(): Added missing line to set the merge policy to NoMergePolicy.COMPOUND_FILES (apache#259)
  • Loading branch information
NightOwl888 committed Feb 4, 2021
1 parent 2f770f3 commit 6560d88
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using J2N.Collections.Generic.Extensions;
using Lucene.Net.Index;
using Lucene.Net.Support;
using NUnit.Framework;
using System;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 6560d88

Please sign in to comment.