lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [06/38] lucenenet git commit: API: Lucene.Net.Search.Similarities.LMSimilarity.ICollectionModel: Renamed Name > GetName() (consistency)
Date Thu, 22 Jun 2017 05:25:07 GMT
API: Lucene.Net.Search.Similarities.LMSimilarity.ICollectionModel: Renamed Name > GetName()
(consistency)


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

Branch: refs/heads/master
Commit: cf7e7494b1478c9c2f5eb45cf1f001d54401b33c
Parents: f77728b
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sat Jun 17 13:12:00 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sat Jun 17 13:12:00 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net/Search/Similarities/LMSimilarity.cs | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/cf7e7494/src/Lucene.Net/Search/Similarities/LMSimilarity.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net/Search/Similarities/LMSimilarity.cs b/src/Lucene.Net/Search/Similarities/LMSimilarity.cs
index 721d576..3be8cec 100644
--- a/src/Lucene.Net/Search/Similarities/LMSimilarity.cs
+++ b/src/Lucene.Net/Search/Similarities/LMSimilarity.cs
@@ -90,11 +90,11 @@ namespace Lucene.Net.Search.Similarities
         /// Returns the name of the LM method. If a custom collection model strategy is
         /// used, its name is included as well. </summary>
         /// <seealso cref="GetName()"/>
-        /// <seealso cref="ICollectionModel.Name"/>
+        /// <seealso cref="ICollectionModel.GetName()"/>
         /// <seealso cref="DefaultCollectionModel"/>
         public override string ToString()
         {
-            string coll = m_collectionModel.Name;
+            string coll = m_collectionModel.GetName();
             if (coll != null)
             {
                 return string.Format("LM {0} - {1}", GetName(), coll);
@@ -153,7 +153,7 @@ namespace Lucene.Net.Search.Similarities
 
             /// <summary>
             /// The name of the collection model strategy. </summary>
-            string Name { get; } // LUCENENET TODO: API Change to GetName() ? (consistency)
+            string GetName();
         }
 
         /// <summary>
@@ -176,12 +176,9 @@ namespace Lucene.Net.Search.Similarities
                 return (stats.TotalTermFreq + 1F) / (stats.NumberOfFieldTokens + 1F);
             }
 
-            public virtual string Name
+            public virtual string GetName()
             {
-                get
-                {
-                    return null;
-                }
+                return null;
             }
         }
     }


Mime
View raw message