|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.search.similarities.Similarity.ExactSimScorer
public abstract static class Similarity.ExactSimScorer
API for scoring exact queries such as TermQuery
and
exact PhraseQuery
.
Frequencies are integers (the term or phrase frequency within the document)
Constructor Summary | |
---|---|
Similarity.ExactSimScorer()
Sole constructor. |
Method Summary | |
---|---|
Explanation |
explain(int doc,
Explanation freq)
Explain the score for a single document |
abstract float |
score(int doc,
int 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.ExactSimScorer()
Method Detail |
---|
public abstract float score(int doc, int freq)
doc
- document idfreq
- term frequency
public Explanation explain(int doc, Explanation freq)
doc
- document idfreq
- Explanation of how the term frequency was computed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |