lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [12/32] lucenenet git commit: Adding another overload for LuceneTestCase.NewSearcher
Date Fri, 12 Aug 2016 13:25:25 GMT
Adding another overload for LuceneTestCase.NewSearcher


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

Branch: refs/heads/master
Commit: ef7f1dd17feda9fbb1a2cc02d5f764268d7e7354
Parents: c499981
Author: Connie Yau <conniey@microsoft.com>
Authored: Fri Jul 22 12:33:30 2016 -0700
Committer: Connie Yau <conniey@microsoft.com>
Committed: Fri Jul 22 12:33:30 2016 -0700

----------------------------------------------------------------------
 src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/ef7f1dd1/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs b/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
index 6dc0940..f63d5cc 100644
--- a/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
@@ -1570,7 +1570,12 @@ namespace Lucene.Net.Util
         /// </summary>
         public IndexSearcher NewSearcher(IndexReader r)
         {
-            return NewSearcher(r, true, ClassEnvRule.Similarity);
+            return NewSearcher(r, ClassEnvRule.Similarity);
+        }
+
+        public static IndexSearcher NewSearcher(IndexReader r, Similarity similarity)
+        {
+            return NewSearcher(r, true, similarity);
         }
 
         /// <summary>


Mime
View raw message