|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.search.similarities.Similarity.SloppySimScorer
public abstract static class Similarity.SloppySimScorer
API for scoring "sloppy" queries such as SpanQuery and
sloppy PhraseQuery.
Frequencies are floating-point values: an approximate
within-document frequency adjusted for "sloppiness" by
computeSlopFactor(int).
| Constructor Summary | |
|---|---|
Similarity.SloppySimScorer()
Sole constructor. |
|
| Method Summary | |
|---|---|
abstract float |
computePayloadFactor(int doc,
int start,
int end,
BytesRef payload)
Calculate a scoring factor based on the data in the payload. |
abstract float |
computeSlopFactor(int distance)
Computes the amount of a sloppy phrase match, based on an edit distance. |
Explanation |
explain(int doc,
Explanation freq)
Explain the score for a single document |
abstract float |
score(int doc,
float freq)
Score a single document |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Similarity.SloppySimScorer()
| Method Detail |
|---|
public abstract float score(int doc,
float freq)
doc - document id within the inverted index segmentfreq - sloppy term frequency
public abstract float computeSlopFactor(int distance)
public abstract float computePayloadFactor(int doc,
int start,
int end,
BytesRef payload)
public Explanation explain(int doc,
Explanation freq)
doc - document id within the inverted index segmentfreq - Explanation of how the sloppy term frequency was computed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||