mirror of https://github.com/apache/lucene.git
Make idf(docFreq,numDocs) public instead of protected.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150106 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3fd7ec2679
commit
964c1b7ada
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue