protected class JackrabbitTermQuery.JackrabbitTermWeight
extends org.apache.lucene.search.Weight
Modifier and Type | Field and Description |
---|---|
protected org.apache.lucene.search.Searcher |
searcher
The searcher for this weight.
|
Constructor and Description |
---|
JackrabbitTermWeight(org.apache.lucene.search.Searcher searcher,
org.apache.lucene.search.Weight weight) |
Modifier and Type | Method and 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() |
protected final org.apache.lucene.search.Searcher searcher
public JackrabbitTermWeight(org.apache.lucene.search.Searcher searcher, org.apache.lucene.search.Weight weight)
protected org.apache.lucene.search.Scorer createScorer(org.apache.lucene.index.IndexReader reader, boolean scoreDocsInOrder, boolean topScorer) throws IOException
reader
- the index reader the created scorer instance should useIOException
- if an error occurs while reading from the indexpublic 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.Explanation explain(org.apache.lucene.index.IndexReader reader, int doc) throws IOException
explain
in class org.apache.lucene.search.Weight
IOException
public org.apache.lucene.search.Scorer scorer(org.apache.lucene.index.IndexReader reader, boolean scoreDocsInOrder, boolean topScorer) throws IOException
Returns a MultiScorer
if the passed reader
is of
type MultiIndexReader
.
scorer
in class org.apache.lucene.search.Weight
IOException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.