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 2017/01/25 03:44:12 UTC

[28/50] [abbrv] lucenenet git commit: Lucene.Net.Tests.Core.Search.Payloads.TestPayloadNearQuery: renamed Similarity camelCase to prevent naming conflict with property of the same name.

Lucene.Net.Tests.Core.Search.Payloads.TestPayloadNearQuery: renamed Similarity camelCase to prevent naming conflict with property of the same name.


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

Branch: refs/heads/api-work
Commit: e6823427d5b173e9646721708bbb9fa2eae2b6b2
Parents: fa79353
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Wed Jan 25 04:40:08 2017 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Wed Jan 25 09:34:47 2017 +0700

----------------------------------------------------------------------
 .../core/Search/Payloads/TestPayloadNearQuery.cs               | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e6823427/src/Lucene.Net.Tests/core/Search/Payloads/TestPayloadNearQuery.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/Payloads/TestPayloadNearQuery.cs b/src/Lucene.Net.Tests/core/Search/Payloads/TestPayloadNearQuery.cs
index cbac374..ff8f897 100644
--- a/src/Lucene.Net.Tests/core/Search/Payloads/TestPayloadNearQuery.cs
+++ b/src/Lucene.Net.Tests/core/Search/Payloads/TestPayloadNearQuery.cs
@@ -46,7 +46,7 @@ namespace Lucene.Net.Search.Payloads
         private static IndexSearcher Searcher;
         private static IndexReader Reader;
         private static Directory Directory;
-        private static BoostingSimilarity Similarity = new BoostingSimilarity();
+        private static BoostingSimilarity similarity = new BoostingSimilarity();
         private static byte[] Payload2 = { 2 };
         private static byte[] Payload4 = { 4 };
         private static readonly Regex _whiteSpaceRegex = new Regex("[\\s]+", RegexOptions.Compiled);
@@ -118,7 +118,7 @@ namespace Lucene.Net.Search.Payloads
         public void BeforeClass()
         {
             Directory = NewDirectory();
-            RandomIndexWriter writer = new RandomIndexWriter(Random(), Directory, NewIndexWriterConfig(TEST_VERSION_CURRENT, new PayloadAnalyzer()).SetSimilarity(Similarity));
+            RandomIndexWriter writer = new RandomIndexWriter(Random(), Directory, NewIndexWriterConfig(TEST_VERSION_CURRENT, new PayloadAnalyzer()).SetSimilarity(similarity));
             //writer.infoStream = System.out;
             for (int i = 0; i < 1000; i++)
             {
@@ -132,7 +132,7 @@ namespace Lucene.Net.Search.Payloads
             writer.Dispose();
 
             Searcher = NewSearcher(Reader);
-            Searcher.Similarity = Similarity;
+            Searcher.Similarity = similarity;
         }
 
         [TestFixtureTearDown]