Apache Solr open-source search software
Make idf(docFreq,numDocs) public instead of protected.
Doug Cutting964c1b7ada1f
diff --git a/src/java/org/apache/lucene/search/Similarity.java b/src/java/org/apache/lucene/search/Similarity.javaindex 20138679a0d..7c6087701e4 100644--- a/src/java/org/apache/lucene/search/Similarity.java+++ b/src/java/org/apache/lucene/search/Similarity.java@@ -321,7 +321,7 @@ public abstract class Similarity {* @param numDocs the total number of documents in the collection* @return a score factor based on the term's document frequency*/- protected abstract float idf(int docFreq, int numDocs);+ public abstract float idf(int docFreq, int numDocs);/** Computes a score factor based on the fraction of all query terms that a* document contains. This value is multiplied into scores.