lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [16/32] lucenenet git commit: Fixing RandomIndexWriter ctor error in SearchEquivalentTestBase
Date Fri, 12 Aug 2016 13:25:29 GMT
Fixing RandomIndexWriter ctor error in SearchEquivalentTestBase


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

Branch: refs/heads/master
Commit: 659d95221eb57e05d47f1292efa47ef2266b6bf3
Parents: 9067582
Author: Connie Yau <conniey@microsoft.com>
Authored: Fri Jul 22 15:08:20 2016 -0700
Committer: Connie Yau <conniey@microsoft.com>
Committed: Fri Jul 22 15:08:20 2016 -0700

----------------------------------------------------------------------
 src/Lucene.Net.TestFramework/Search/SearchEquivalenceTestBase.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/659d9522/src/Lucene.Net.TestFramework/Search/SearchEquivalenceTestBase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Search/SearchEquivalenceTestBase.cs b/src/Lucene.Net.TestFramework/Search/SearchEquivalenceTestBase.cs
index c5e6d7d..19a182c 100644
--- a/src/Lucene.Net.TestFramework/Search/SearchEquivalenceTestBase.cs
+++ b/src/Lucene.Net.TestFramework/Search/SearchEquivalenceTestBase.cs
@@ -65,7 +65,7 @@ namespace Lucene.Net.Search
             Stopword = "" + RandomChar();
             CharacterRunAutomaton stopset = new CharacterRunAutomaton(BasicAutomata.MakeString(Stopword));
             Analyzer = new MockAnalyzer(random, MockTokenizer.WHITESPACE, false, stopset);
-            RandomIndexWriter iw = new RandomIndexWriter(random, Directory, Analyzer);
+            RandomIndexWriter iw = new RandomIndexWriter(random, Directory, Analyzer, ClassEnvRule.Similarity,
ClassEnvRule.TimeZone);
             Document doc = new Document();
             Field id = new StringField("id", "", Field.Store.NO);
             Field field = new TextField("field", "", Field.Store.NO);


Mime
View raw message