Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8096D200CD2 for ; Thu, 22 Jun 2017 07:25:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7EF83160BD5; Thu, 22 Jun 2017 05:25:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C9B5A160BF0 for ; Thu, 22 Jun 2017 07:25:09 +0200 (CEST) Received: (qmail 79955 invoked by uid 500); 22 Jun 2017 05:25:04 -0000 Mailing-List: contact commits-help@lucenenet.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucene-net-dev@lucenenet.apache.org Delivered-To: mailing list commits@lucenenet.apache.org Received: (qmail 79854 invoked by uid 99); 22 Jun 2017 05:25:03 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jun 2017 05:25:03 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 97276DFF5F; Thu, 22 Jun 2017 05:25:02 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: nightowl888@apache.org To: commits@lucenenet.apache.org Date: Thu, 22 Jun 2017 05:25:07 -0000 Message-Id: In-Reply-To: <231e7073b9444cdc955d02db32d1edee@git.apache.org> References: <231e7073b9444cdc955d02db32d1edee@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [06/38] lucenenet git commit: API: Lucene.Net.Search.Similarities.LMSimilarity.ICollectionModel: Renamed Name > GetName() (consistency) archived-at: Thu, 22 Jun 2017 05:25:10 -0000 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 Authored: Sat Jun 17 13:12:00 2017 +0700 Committer: Shad Storhaug 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. /// - /// + /// /// 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 /// /// The name of the collection model strategy. - string Name { get; } // LUCENENET TODO: API Change to GetName() ? (consistency) + string GetName(); } /// @@ -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; } } }