@NotThreadSafe public class DependencySimilarity extends org.apache.lucene.search.similarities.ClassicSimilarity
| Constructor and Description |
|---|
DependencySimilarity() |
| Modifier and Type | Method and Description |
|---|---|
float |
idf(long docFreq,
long numDocs)
Override the default IDF implementation so that frequency within all document is ignored.
|
idfExplain, lengthNorm, tf, toStringpublic float idf(long docFreq,
long numDocs)
Override the default IDF implementation so that frequency within all document is ignored.
See this article for more details.idf in class org.apache.lucene.search.similarities.ClassicSimilaritydocFreq - - the number of documents which contain the termnumDocs - - the total number of documents in the collectionCopyright © 2012–2020 OWASP. All rights reserved.