SimilarityDelegatorpublic class SimilarityDelegator extends Similarity Expert: Delegating scoring implementation. Useful in {@link
Query#getSimilarity(Searcher)} implementations, to override only certain
methods of a Searcher's Similiarty implementation.. |
Fields Summary |
---|
private Similarity | delegee |
Constructors Summary |
---|
public SimilarityDelegator(Similarity delegee)Construct a {@link Similarity} that delegates all methods to another.
this.delegee = delegee;
|
Methods Summary |
---|
public float | coord(int overlap, int maxOverlap)
return delegee.coord(overlap, maxOverlap);
| public float | idf(int docFreq, int numDocs)
return delegee.idf(docFreq, numDocs);
| public float | lengthNorm(java.lang.String fieldName, int numTerms)
return delegee.lengthNorm(fieldName, numTerms);
| public float | queryNorm(float sumOfSquaredWeights)
return delegee.queryNorm(sumOfSquaredWeights);
| public float | sloppyFreq(int distance)
return delegee.sloppyFreq(distance);
| public float | tf(float freq)
return delegee.tf(freq);
|
|