lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [13/50] [abbrv] lucenenet git commit: Lucene.Net.TestFramework.Index.BaseStoredFieldsFormatTestCase.TestWriteReadMerge(): Added commented SimpleText codec
Date Wed, 15 Mar 2017 23:49:55 GMT
Lucene.Net.TestFramework.Index.BaseStoredFieldsFormatTestCase.TestWriteReadMerge(): Added commented
SimpleText codec


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/ea2cda6c
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/ea2cda6c
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/ea2cda6c

Branch: refs/heads/api-work
Commit: ea2cda6c4d9540953d444b47550ff326cd1b5d9f
Parents: b4f5c0c
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Tue Mar 14 20:22:58 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Tue Mar 14 22:04:26 2017 +0700

----------------------------------------------------------------------
 .../Index/BaseStoredFieldsFormatTestCase.cs            | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ea2cda6c/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs b/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
index 3391128..16a6bc2 100644
--- a/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/BaseStoredFieldsFormatTestCase.cs
@@ -1,5 +1,6 @@
 using Lucene.Net.Attributes;
 using Lucene.Net.Codecs;
+using Lucene.Net.Codecs.SimpleText;
 using Lucene.Net.Documents;
 using Lucene.Net.Randomized.Generators;
 using Lucene.Net.Search;
@@ -570,14 +571,14 @@ namespace Lucene.Net.Index
         {
             // get another codec, other than the default: so we are merging segments across
different codecs
             Codec otherCodec;
-            /*if ("SimpleText".Equals(Codec.Default.Name))
-            {*/
-            otherCodec = new Lucene46Codec();
-            /*}
+            if ("SimpleText".Equals(Codec.Default.Name))
+            {
+                otherCodec = new Lucene46Codec();
+            }
             else
             {
-              otherCodec = new SimpleTextCodec();
-            }*/
+                otherCodec = new SimpleTextCodec();
+            }
             Directory dir = NewDirectory();
             IndexWriterConfig iwConf = NewIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random()));
             iwConf.SetMaxBufferedDocs(RandomInts.NextIntBetween(Random(), 2, 30));


Mime
View raw message