| java.lang.Object org.apache.lucene.search.Similarity org.apache.lucene.search.DefaultSimilarity
All known Subclasses: org.apache.lucene.misc.SweetSpotSimilarity,
DefaultSimilarity | public class DefaultSimilarity extends Similarity (Code) | | Expert: Default scoring implementation.
|
Method Summary | |
public float | coord(int overlap, int maxOverlap) Implemented as overlap / maxOverlap . | public float | idf(int docFreq, int numDocs) Implemented as log(numDocs/(docFreq+1)) + 1 . | public float | lengthNorm(String fieldName, int numTerms) Implemented as 1/sqrt(numTerms) . | public float | queryNorm(float sumOfSquaredWeights) Implemented as 1/sqrt(sumOfSquaredWeights) . | public float | sloppyFreq(int distance) Implemented as 1 / (distance + 1) . | public float | tf(float freq) Implemented as sqrt(freq) . |
coord | public float coord(int overlap, int maxOverlap)(Code) | | Implemented as overlap / maxOverlap .
|
idf | public float idf(int docFreq, int numDocs)(Code) | | Implemented as log(numDocs/(docFreq+1)) + 1 .
|
lengthNorm | public float lengthNorm(String fieldName, int numTerms)(Code) | | Implemented as 1/sqrt(numTerms) .
|
queryNorm | public float queryNorm(float sumOfSquaredWeights)(Code) | | Implemented as 1/sqrt(sumOfSquaredWeights) .
|
sloppyFreq | public float sloppyFreq(int distance)(Code) | | Implemented as 1 / (distance + 1) .
|
tf | public float tf(float freq)(Code) | | Implemented as sqrt(freq) .
|
|
|