lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [14/32] lucenenet git commit: Fixing NewField build errors in ThreadingIndexingAndSearching
Date Fri, 12 Aug 2016 13:25:27 GMT
Fixing NewField build errors in ThreadingIndexingAndSearching


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

Branch: refs/heads/master
Commit: 72840c6544d310155d7e1849283d9ec38bab79c3
Parents: 9591b70
Author: Connie Yau <conniey@microsoft.com>
Authored: Fri Jul 22 15:07:12 2016 -0700
Committer: Connie Yau <conniey@microsoft.com>
Committed: Fri Jul 22 15:07:12 2016 -0700

----------------------------------------------------------------------
 .../Index/ThreadedIndexingAndSearchingTestCase.cs                | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/72840c65/src/Lucene.Net.TestFramework/Index/ThreadedIndexingAndSearchingTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Index/ThreadedIndexingAndSearchingTestCase.cs b/src/Lucene.Net.TestFramework/Index/ThreadedIndexingAndSearchingTestCase.cs
index 9aad57a..72e6994 100644
--- a/src/Lucene.Net.TestFramework/Index/ThreadedIndexingAndSearchingTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Index/ThreadedIndexingAndSearchingTestCase.cs
@@ -202,7 +202,7 @@ namespace Lucene.Net.Index
                         if (Random().NextBoolean())
                         {
                             addedField = "extra" + Random().Next(40);
-                            doc.Add(NewTextField(addedField, "a random field", Field.Store.YES));
+                            doc.Add(OuterInstance.NewTextField(addedField, "a random field",
Field.Store.YES));
                         }
                         else
                         {
@@ -231,7 +231,7 @@ namespace Lucene.Net.Index
                                     packID = OuterInstance.PackCount.IncrementAndGet() +
"";
                                 }
 
-                                Field packIDField = NewStringField("packID", packID, Field.Store.YES);
+                                Field packIDField = OuterInstance.NewStringField("packID",
packID, Field.Store.YES);
                                 IList<string> docIDs = new List<string>();
                                 SubDocs subDocs = new SubDocs(packID, docIDs);
                                 IList<Document> docsList = new List<Document>();


Mime
View raw message