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 org.apache.lucene.search.Weight
The weight implementation.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.lucene.search.Searcher
searcher
The searcher for this weight.
-
Constructor Summary
Constructors Constructor Description JackrabbitTermWeight(org.apache.lucene.search.Searcher searcher, org.apache.lucene.search.Weight weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.lucene.search.Scorer
createScorer(org.apache.lucene.index.IndexReader reader, boolean scoreDocsInOrder, boolean topScorer)
Abstract factory method for crating a scorer instance for the specified reader.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()
-
-
-
Method Detail
-
createScorer
protected org.apache.lucene.search.Scorer createScorer(org.apache.lucene.index.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
-
getQuery
public org.apache.lucene.search.Query getQuery()
- Specified by:
getQuery
in classorg.apache.lucene.search.Weight
-
getValue
public float getValue()
- Specified by:
getValue
in classorg.apache.lucene.search.Weight
-
sumOfSquaredWeights
public float sumOfSquaredWeights() throws IOException
- Specified by:
sumOfSquaredWeights
in classorg.apache.lucene.search.Weight
- Throws:
IOException
-
normalize
public void normalize(float norm)
- Specified by:
normalize
in classorg.apache.lucene.search.Weight
-
explain
public org.apache.lucene.search.Explanation explain(org.apache.lucene.index.IndexReader reader, int doc) throws IOException
- Specified by:
explain
in classorg.apache.lucene.search.Weight
- Throws:
IOException
-
scorer
public org.apache.lucene.search.Scorer scorer(org.apache.lucene.index.IndexReader reader, boolean scoreDocsInOrder, boolean topScorer) throws IOException
Returns a
MultiScorer
if the passedreader
is of typeMultiIndexReader
.- Specified by:
scorer
in classorg.apache.lucene.search.Weight
- Throws:
IOException
-
-