You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2016/09/11 21:31:15 UTC

[44/50] [abbrv] lucenenet git commit: Fixed RandomIndexWriter call because the overload that is supposed to be used was removed.

Fixed RandomIndexWriter call because the overload that is supposed to be used was removed.


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

Branch: refs/heads/master
Commit: 10dc873b1b5d5c1f54e1c0e41ea8b03380864e1a
Parents: 2f07fa2
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Fri Sep 2 23:12:55 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Fri Sep 2 23:12:55 2016 +0700

----------------------------------------------------------------------
 .../Analyzing/TestAnalyzingQueryParser.cs                        | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/10dc873b/src/Lucene.Net.Tests.QueryParser/Analyzing/TestAnalyzingQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Analyzing/TestAnalyzingQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Analyzing/TestAnalyzingQueryParser.cs
index 10756cf..77c4f9f 100644
--- a/src/Lucene.Net.Tests.QueryParser/Analyzing/TestAnalyzingQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Analyzing/TestAnalyzingQueryParser.cs
@@ -310,7 +310,9 @@ namespace Lucene.Net.QueryParser.Analyzing
             int hits;
             using (Directory ramDir = NewDirectory())
             {
-                using (RandomIndexWriter writer = new RandomIndexWriter(Random(), ramDir, analyzer))
+                // LUCENENET TODO: It seems the overload this test depends on has been removed from the RandomIndexWriter
+                //using (RandomIndexWriter writer = new RandomIndexWriter(Random(), ramDir, analyzer))
+                using (RandomIndexWriter writer = new RandomIndexWriter(Random(), ramDir, NewIndexWriterConfig(Random(), TEST_VERSION_CURRENT, analyzer)))
                 {
                     Document doc = new Document();
                     FieldType fieldType = new FieldType();