public abstract static class Similarity.SimScorer extends Object
| Constructor and Description |
|---|
SimScorer()
Sole constructor.
|
| Modifier and Type | Method and 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 document
|
abstract float |
score(int doc,
float freq)
Score a single document
|
public SimScorer()
public abstract float score(int doc,
float freq)
throws IOException
doc - document id within the inverted index segmentfreq - sloppy term frequencyIOException@Deprecated public abstract float computeSlopFactor(int distance)
@Deprecated public abstract float computePayloadFactor(int doc, int start, int end, BytesRef payload)
public Explanation explain(int doc, Explanation freq) throws IOException
doc - document id within the inverted index segmentfreq - Explanation of how the sloppy term frequency was computedIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.