You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ro...@apache.org on 2017/11/10 10:19:29 UTC
[2/2] lucene-solr:branch_7x: LUCENE-8014: Also deprecate
TFIDFSimilarity.sloppyFreq()
LUCENE-8014: Also deprecate TFIDFSimilarity.sloppyFreq()
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/08211605
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/08211605
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/08211605
Branch: refs/heads/branch_7x
Commit: 082116057676906a97cfbb088c58e6e238c6e737
Parents: 2f4ddae
Author: Alan Woodward <ro...@apache.org>
Authored: Fri Nov 10 09:47:18 2017 +0000
Committer: Alan Woodward <ro...@apache.org>
Committed: Fri Nov 10 09:47:18 2017 +0000
----------------------------------------------------------------------
.../java/org/apache/lucene/search/similarities/TFIDFSimilarity.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/08211605/lucene/core/src/java/org/apache/lucene/search/similarities/TFIDFSimilarity.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/java/org/apache/lucene/search/similarities/TFIDFSimilarity.java b/lucene/core/src/java/org/apache/lucene/search/similarities/TFIDFSimilarity.java
index 14b3c3f..b5df626 100644
--- a/lucene/core/src/java/org/apache/lucene/search/similarities/TFIDFSimilarity.java
+++ b/lucene/core/src/java/org/apache/lucene/search/similarities/TFIDFSimilarity.java
@@ -536,6 +536,7 @@ public abstract class TFIDFSimilarity extends Similarity {
* @param distance the edit distance of this sloppy phrase match
* @return the frequency increment for this match
*/
+ @Deprecated
public abstract float sloppyFreq(int distance);
/**