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 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
-
-
-
-
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:
sumOfSquaredWeights
in classWeight
- Throws:
IOException
-
scorer
public Scorer scorer(IndexReader reader, boolean scoreDocsInOrder, boolean topScorer) throws IOException
- Specified by:
scorer
in classWeight
- Throws:
IOException
-
explain
public Explanation explain(IndexReader reader, int doc) throws IOException
- Specified by:
explain
in classWeight
- Throws:
IOException
-
-