public abstract static class Similarity.SimScorer extends Object
TermQuery,
 SpanQuery, and PhraseQuery.
 
 Frequencies are floating-point values: an approximate 
 within-document frequency adjusted for "sloppiness" by 
 computeSlopFactor(int).
| Constructor and Description | 
|---|
| SimScorer()Sole constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| 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 | 
public SimScorer()
public abstract float score(int doc,
                            float freq)
doc - document id within the inverted index segmentfreq - sloppy term frequencypublic 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 computedCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.