public abstract static class Similarity.SimScorer
extends java.lang.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 java.io.IOException
doc
- document id within the inverted index segmentfreq
- sloppy term frequencyjava.io.IOException
@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 java.io.IOException
doc
- document id within the inverted index segmentfreq
- Explanation of how the sloppy term frequency was computedjava.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.