You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2021/02/04 22:16:13 UTC

[lucenenet] 02/04: BUG: Lucene.Net.Tests.Facet.Taxonomy.TestTaxonomyFacetCounts2::BeforeClass(): Added missing line to set the merge policy to NoMergePolicy.COMPOUND_FILES (#259)

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 14fa4ac1d001fa4678f7558491bf9bb70dbee0fa
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Thu Feb 4 18:08:43 2021 +0700

    BUG: Lucene.Net.Tests.Facet.Taxonomy.TestTaxonomyFacetCounts2::BeforeClass(): Added missing line to set the merge policy to NoMergePolicy.COMPOUND_FILES (#259)
---
 src/Lucene.Net.Tests.Facet/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 33c1388..1241ad6 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 @@ namespace Lucene.Net.Facet.Taxonomy
             // 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);