Class QueryHitsQuery.QueryHitsQueryWeight
- java.lang.Object
-
- org.apache.lucene.search.Weight
-
- org.apache.jackrabbit.core.query.lucene.QueryHitsQuery.QueryHitsQueryWeight
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- QueryHitsQuery
public class QueryHitsQuery.QueryHitsQueryWeight extends Weight
The Weight implementation for this query.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueryHitsQueryWeight(Similarity similarity)Creates a new weight with the givensimilarity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Constructor Detail
-
QueryHitsQueryWeight
public QueryHitsQueryWeight(Similarity similarity)
Creates a new weight with the givensimilarity.- Parameters:
similarity- the similarity.
-
-
Method Detail
-
sumOfSquaredWeights
public float sumOfSquaredWeights() throws IOException- Specified by:
sumOfSquaredWeightsin classWeight- Throws:
IOException
-
scorer
public Scorer scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer) throws IOException
- Specified by:
scorerin classWeight- Throws:
IOException
-
explain
public Explanation explain(IndexReader reader, int doc) throws IOException
- Specified by:
explainin classWeight- Throws:
IOException
-
-