Class Similarity.SimScorer
- java.lang.Object
-
- org.apache.lucene.search.similarities.Similarity.SimScorer
-
- Enclosing class:
- Similarity
public abstract static class Similarity.SimScorer extends Object
-
-
Constructor Summary
Constructors Constructor Description SimScorer()
Sole constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract float
computePayloadFactor(int doc, int start, int end, BytesRef payload)
Deprecated.abstract float
computeSlopFactor(int distance)
Deprecated.Explanation
explain(int doc, Explanation freq)
Explain the score for a single documentabstract float
score(int doc, float freq)
Score a single document
-
-
-
Method Detail
-
score
public abstract float score(int doc, float freq) throws IOException
Score a single document- Parameters:
doc
- document id within the inverted index segmentfreq
- sloppy term frequency- Returns:
- document's score
- Throws:
IOException
-
computeSlopFactor
@Deprecated public abstract float computeSlopFactor(int distance)
Deprecated.Computes the amount of a sloppy phrase match, based on an edit distance.
-
computePayloadFactor
@Deprecated public abstract float computePayloadFactor(int doc, int start, int end, BytesRef payload)
Deprecated.Calculate a scoring factor based on the data in the payload.
-
explain
public Explanation explain(int doc, Explanation freq) throws IOException
Explain the score for a single document- Parameters:
doc
- document id within the inverted index segmentfreq
- Explanation of how the sloppy term frequency was computed- Returns:
- document's score
- Throws:
IOException
-
-