lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [09/22] lucenenet git commit: Lucene.Net.Queries.Mlt.MoreLikeThis refactor: MaxDocFreqPct (setter only) > SetMaxDocFreqPct(int)
Date Sat, 28 Jan 2017 10:15:52 GMT
Lucene.Net.Queries.Mlt.MoreLikeThis refactor: MaxDocFreqPct (setter only) > SetMaxDocFreqPct(int)


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

Branch: refs/heads/api-work
Commit: 34cde531814e712e7eeef596c914c3e35d73d565
Parents: 5d2ad90
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sat Jan 28 08:02:48 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sat Jan 28 08:02:48 2017 +0700

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


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/34cde531/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 8f36026..4534bdc 100644
--- a/src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs
+++ b/src/Lucene.Net.Queries/Mlt/MoreLikeThis.cs
@@ -307,12 +307,9 @@ namespace Lucene.Net.Queries.Mlt
         /// </summary>
         /// <param name="maxPercentage"> the maximum percentage of documents (0-100)
that a term may appear
         /// in to be still considered relevant </param>
-        public int MaxDocFreqPct // LUCENENET TODO: Change to SetMaxDocFreqPct(int maxPercentage)
+        public void SetMaxDocFreqPct(int maxPercentage)
         {
-            set
-            {
-                this.MaxDocFreq = value * ir.NumDocs / 100;
-            }
+            this.MaxDocFreq = maxPercentage * ir.NumDocs / 100;
         }
 
 


Mime
View raw message