lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [11/50] [abbrv] lucenenet git commit: Lucene.Net.Tests.Core.Search.Spans.TestPayloadSpans: renamed Similarity camelCase to prevent naming conflict with property of the same name.
Date Wed, 25 Jan 2017 03:43:55 GMT
Lucene.Net.Tests.Core.Search.Spans.TestPayloadSpans: 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/fa793538
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/fa793538
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/fa793538

Branch: refs/heads/api-work
Commit: fa793538b2e0afa1cdfae9b47a3cfc9c67b59637
Parents: 295c9e5
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Wed Jan 25 04:37:57 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Wed Jan 25 09:34:46 2017 +0700

----------------------------------------------------------------------
 .../core/Search/Spans/TestPayloadSpans.cs                 | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fa793538/src/Lucene.Net.Tests/core/Search/Spans/TestPayloadSpans.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Search/Spans/TestPayloadSpans.cs b/src/Lucene.Net.Tests/core/Search/Spans/TestPayloadSpans.cs
index 7ba0910..a9393b4 100644
--- a/src/Lucene.Net.Tests/core/Search/Spans/TestPayloadSpans.cs
+++ b/src/Lucene.Net.Tests/core/Search/Spans/TestPayloadSpans.cs
@@ -48,7 +48,7 @@ namespace Lucene.Net.Search.Spans
     public class TestPayloadSpans : LuceneTestCase
     {
         private IndexSearcher Searcher_Renamed;
-        private Similarity Similarity = new DefaultSimilarity();
+        private Similarity similarity = new DefaultSimilarity();
         protected internal IndexReader IndexReader;
         private IndexReader CloseIndexReader;
         private Directory Directory;
@@ -58,7 +58,7 @@ namespace Lucene.Net.Search.Spans
         {
             base.SetUp();
             PayloadHelper helper = new PayloadHelper();
-            Searcher_Renamed = helper.SetUp(Random(), Similarity, 1000);
+            Searcher_Renamed = helper.SetUp(Random(), similarity, 1000);
             IndexReader = Searcher_Renamed.IndexReader;
         }
 
@@ -110,7 +110,7 @@ namespace Lucene.Net.Search.Spans
             SpanNotQuery snq = new SpanNotQuery(spq, new SpanTermQuery(new Term(PayloadHelper.FIELD,
"two")));
 
             Directory directory = NewDirectory();
-            RandomIndexWriter writer = new RandomIndexWriter(Random(), directory, NewIndexWriterConfig(TEST_VERSION_CURRENT,
new PayloadAnalyzer(this)).SetSimilarity(Similarity));
+            RandomIndexWriter writer = new RandomIndexWriter(Random(), directory, NewIndexWriterConfig(TEST_VERSION_CURRENT,
new PayloadAnalyzer(this)).SetSimilarity(similarity));
 
             Document doc = new Document();
             doc.Add(NewTextField(PayloadHelper.FIELD, "one two three one four three", Field.Store.YES));
@@ -382,7 +382,7 @@ namespace Lucene.Net.Search.Spans
         public virtual void TestPayloadSpanUtil()
         {
             Directory directory = NewDirectory();
-            RandomIndexWriter writer = new RandomIndexWriter(Random(), directory, NewIndexWriterConfig(TEST_VERSION_CURRENT,
new PayloadAnalyzer(this)).SetSimilarity(Similarity));
+            RandomIndexWriter writer = new RandomIndexWriter(Random(), directory, NewIndexWriterConfig(TEST_VERSION_CURRENT,
new PayloadAnalyzer(this)).SetSimilarity(similarity));
 
             Document doc = new Document();
             doc.Add(NewTextField(PayloadHelper.FIELD, "xx rr yy mm  pp", Field.Store.YES));
@@ -446,7 +446,7 @@ namespace Lucene.Net.Search.Spans
             {
                 Directory = NewDirectory();
                 string[] docs = new string[] { "xx rr yy mm  pp", "xx yy mm rr pp", "nopayload
qq ss pp np", "one two three four five six seven eight nine ten eleven", "nine one two three
four five six seven eight eleven ten" };
-                RandomIndexWriter writer = new RandomIndexWriter(Random(), Directory, NewIndexWriterConfig(TEST_VERSION_CURRENT,
new PayloadAnalyzer(this)).SetSimilarity(Similarity));
+                RandomIndexWriter writer = new RandomIndexWriter(Random(), Directory, NewIndexWriterConfig(TEST_VERSION_CURRENT,
new PayloadAnalyzer(this)).SetSimilarity(similarity));
 
                 Document doc = null;
                 for (int i = 0; i < docs.Length; i++)


Mime
View raw message