public class QueryHitsQuery.QueryHitsQueryWeight
extends org.apache.lucene.search.Weight
Constructor and Description |
---|
QueryHitsQueryWeight(org.apache.lucene.search.Similarity similarity)
Creates a new weight with the given
similarity . |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Explanation |
explain(org.apache.lucene.index.IndexReader reader,
int doc) |
org.apache.lucene.search.Query |
getQuery() |
float |
getValue() |
void |
normalize(float norm) |
org.apache.lucene.search.Scorer |
scorer(org.apache.lucene.index.IndexReader reader,
boolean scoreDocsInOrder,
boolean topScorer) |
float |
sumOfSquaredWeights() |
public QueryHitsQueryWeight(org.apache.lucene.search.Similarity similarity)
similarity
.similarity
- the similarity.public org.apache.lucene.search.Query getQuery()
getQuery
in class org.apache.lucene.search.Weight
public float getValue()
getValue
in class org.apache.lucene.search.Weight
public float sumOfSquaredWeights() throws IOException
sumOfSquaredWeights
in class org.apache.lucene.search.Weight
IOException
public void normalize(float norm)
normalize
in class org.apache.lucene.search.Weight
public org.apache.lucene.search.Scorer scorer(org.apache.lucene.index.IndexReader reader, boolean scoreDocsInOrder, boolean topScorer) throws IOException
scorer
in class org.apache.lucene.search.Weight
IOException
public org.apache.lucene.search.Explanation explain(org.apache.lucene.index.IndexReader reader, int doc) throws IOException
explain
in class org.apache.lucene.search.Weight
IOException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.