Class JackrabbitTermQuery.JackrabbitTermWeight
- java.lang.Object
-
- org.apache.lucene.search.Weight
-
- org.apache.jackrabbit.core.query.lucene.JackrabbitTermQuery.JackrabbitTermWeight
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- JackrabbitTermQuery
protected class JackrabbitTermQuery.JackrabbitTermWeight extends Weight
The weight implementation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JackrabbitTermWeight(Searcher searcher, Weight weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Scorer
createScorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)
Abstract factory method for crating a scorer instance for the specified reader.Explanation
explain(IndexReader reader, int doc)
Query
getQuery()
float
getValue()
void
normalize(float norm)
Scorer
scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)
float
sumOfSquaredWeights()
-
Methods inherited from class org.apache.lucene.search.Weight
scoresDocsOutOfOrder
-
-
-
-
Field Detail
-
searcher
protected final Searcher searcher
The searcher for this weight.
-
-
Method Detail
-
createScorer
protected Scorer createScorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer) throws IOException
Abstract factory method for crating a scorer instance for the specified reader.- Parameters:
reader
- the index reader the created scorer instance should use- Returns:
- the scorer instance
- Throws:
IOException
- if an error occurs while reading from the index
-
sumOfSquaredWeights
public float sumOfSquaredWeights() throws IOException
- Specified by:
sumOfSquaredWeights
in classWeight
- Throws:
IOException
-
explain
public Explanation explain(IndexReader reader, int doc) throws IOException
- Specified by:
explain
in classWeight
- Throws:
IOException
-
scorer
public Scorer scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer) throws IOException
Returns a
MultiScorer
if the passedreader
is of typeMultiIndexReader
.- Specified by:
scorer
in classWeight
- Throws:
IOException
-
-