lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [10/22] lucenenet git commit: Lucene.Net.Queries.Mlt.MoreLikeThis refactor: createQueue() > CreateQueue(), describeParams() > DescribeParams()
Date Sat, 28 Jan 2017 10:15:53 GMT
Lucene.Net.Queries.Mlt.MoreLikeThis refactor: createQueue() > CreateQueue(), describeParams()
> DescribeParams()


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

Branch: refs/heads/api-work
Commit: 62ea1031519c3a7e8dfb83970452343ead4c7d65
Parents: 34cde53
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sat Jan 28 08:09:28 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sat Jan 28 08:09:28 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/62ea1031/src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs b/src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs
index 4534bdc..4237302 100644
--- a/src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs
+++ b/src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs
@@ -447,7 +447,7 @@ namespace Lucene.Net.Queries.Mlt
         /// </summary>
         /// <param name="words"> a map of words keyed on the word(String) with Int
objects as the values. </param>
         /// <exception cref="IOException"/>
-        private Util.PriorityQueue<object[]> createQueue(IDictionary<string, Int>
words) // LUCENENET TODO: Rename CreateQueue
+        private Util.PriorityQueue<object[]> CreateQueue(IDictionary<string, Int>
words)
         {
             // have collected all words in doc and their freqs
             int numDocs = ir.NumDocs;
@@ -498,7 +498,7 @@ namespace Lucene.Net.Queries.Mlt
         /// <summary>
         /// Describe the parameters that control how the "more like this" query is formed.
         /// </summary>
-        public string describeParams() // LUCENENET TODO: Rename DescribeParams()
+        public string DescribeParams()
         {
             StringBuilder sb = new StringBuilder();
             sb.Append("\t").Append("maxQueryTerms  : ").Append(MaxQueryTerms).Append("\n");
@@ -559,7 +559,7 @@ namespace Lucene.Net.Queries.Mlt
                 }
             }
 
-            return createQueue(termFreqMap);
+            return CreateQueue(termFreqMap);
         }
 
         /// <summary>
@@ -695,7 +695,7 @@ namespace Lucene.Net.Queries.Mlt
         {
             IDictionary<string, Int> words = new Dictionary<string, Int>();
             AddTermFrequencies(r, words, fieldName);
-            return createQueue(words);
+            return CreateQueue(words);
         }
 
         /// <seealso cref= #retrieveInterestingTerms(java.io.Reader, String) </seealso>


Mime
View raw message