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 ScorercreateScorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)Abstract factory method for crating a scorer instance for the specified reader.Explanationexplain(IndexReader reader, int doc)QuerygetQuery()floatgetValue()voidnormalize(float norm)Scorerscorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)floatsumOfSquaredWeights()-
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:
sumOfSquaredWeightsin classWeight- Throws:
IOException
-
explain
public Explanation explain(IndexReader reader, int doc) throws IOException
- Specified by:
explainin classWeight- Throws:
IOException
-
scorer
public Scorer scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer) throws IOException
Returns a
MultiScorerif the passedreaderis of typeMultiIndexReader.- Specified by:
scorerin classWeight- Throws:
IOException
-
-