Package | Description |
---|---|
org.apache.lucene.queries.function |
Queries that compute score based upon a function.
|
org.apache.lucene.search |
Code to search indices.
|
Modifier and Type | Class and Description |
---|---|
(package private) static class |
FunctionScoreQuery.MultiplicativeBoostValuesSource |
private static class |
FunctionScoreQuery.QueryBoostValuesSource |
private static class |
IndexReaderFunctions.IndexReaderDoubleValuesSource |
private static class |
IndexReaderFunctions.NoCacheConstantDoubleValuesSource |
private static class |
IndexReaderFunctions.TermFreqDoubleValuesSource |
(package private) static class |
ValueSource.WrappedDoubleValuesSource |
Modifier and Type | Field and Description |
---|---|
(package private) DoubleValuesSource |
FunctionScoreQuery.MultiplicativeBoostValuesSource.boost |
(package private) DoubleValuesSource |
ValueSource.FromDoubleValuesSource.in |
(package private) DoubleValuesSource |
IndexReaderFunctions.NoCacheConstantDoubleValuesSource.parent |
private DoubleValuesSource |
FunctionScoreQuery.QueryBoostValuesSource.query |
private DoubleValuesSource |
FunctionMatchQuery.source |
private DoubleValuesSource |
FunctionScoreQuery.source |
(package private) DoubleValuesSource |
FunctionScoreQuery.FunctionScoreWeight.valueSource |
Modifier and Type | Method and Description |
---|---|
DoubleValuesSource |
ValueSource.asDoubleValuesSource()
Expose this ValueSource as a DoubleValuesSource
|
static DoubleValuesSource |
IndexReaderFunctions.docCount(java.lang.String field)
Creates a constant value source returning the docCount for a given field
|
static DoubleValuesSource |
IndexReaderFunctions.docFreq(Term term)
Creates a constant value source returning the docFreq of a given term
|
DoubleValuesSource |
FunctionScoreQuery.getSource() |
static DoubleValuesSource |
IndexReaderFunctions.maxDoc()
Creates a constant value source returning the index's maxDoc
|
static DoubleValuesSource |
IndexReaderFunctions.numDeletedDocs()
Creates a constant value source returning the number of deleted docs in the index
|
static DoubleValuesSource |
IndexReaderFunctions.numDocs()
Creates a constant value source returning the index's numDocs
|
DoubleValuesSource |
ValueSource.WrappedDoubleValuesSource.rewrite(IndexSearcher searcher) |
DoubleValuesSource |
FunctionScoreQuery.MultiplicativeBoostValuesSource.rewrite(IndexSearcher reader) |
DoubleValuesSource |
FunctionScoreQuery.QueryBoostValuesSource.rewrite(IndexSearcher reader) |
DoubleValuesSource |
IndexReaderFunctions.TermFreqDoubleValuesSource.rewrite(IndexSearcher searcher) |
DoubleValuesSource |
IndexReaderFunctions.IndexReaderDoubleValuesSource.rewrite(IndexSearcher searcher) |
DoubleValuesSource |
IndexReaderFunctions.NoCacheConstantDoubleValuesSource.rewrite(IndexSearcher reader) |
static DoubleValuesSource |
IndexReaderFunctions.sumDocFreq(java.lang.String field)
Creates a constant value source returning the sumDocFreq for a given field
|
static DoubleValuesSource |
IndexReaderFunctions.termFreq(Term term)
Creates a value source that returns the term freq of a given term for each document
|
static DoubleValuesSource |
IndexReaderFunctions.totalTermFreq(Term term)
Creates a constant value source returning the totalTermFreq for a given term
|
Modifier and Type | Method and Description |
---|---|
static FunctionScoreQuery |
FunctionScoreQuery.boostByValue(Query in,
DoubleValuesSource boost)
Returns a FunctionScoreQuery where the scores of a wrapped query are multiplied by
the value of a DoubleValuesSource.
|
static ValueSource |
ValueSource.fromDoubleValuesSource(DoubleValuesSource in) |
Constructor and Description |
---|
FromDoubleValuesSource(DoubleValuesSource in) |
FunctionMatchQuery(DoubleValuesSource source,
java.util.function.DoublePredicate filter)
Create a FunctionMatchQuery
|
FunctionScoreQuery(Query in,
DoubleValuesSource source)
Create a new FunctionScoreQuery
|
FunctionScoreWeight(Query query,
Weight inner,
DoubleValuesSource valueSource,
float boost) |
MultiplicativeBoostValuesSource(DoubleValuesSource boost) |
NoCacheConstantDoubleValuesSource(double value,
DoubleValuesSource parent) |
QueryBoostValuesSource(DoubleValuesSource query,
float boost) |
Modifier and Type | Class and Description |
---|---|
private static class |
DoubleValuesSource.ConstantValuesSource |
private static class |
DoubleValuesSource.FieldValuesSource |
private static class |
DoubleValuesSource.QueryDoubleValuesSource |
private static class |
DoubleValuesSource.WeightDoubleValuesSource |
private static class |
LongValuesSource.DoubleLongValuesSource |
Modifier and Type | Field and Description |
---|---|
private DoubleValuesSource |
DoubleValuesSource.LongDoubleValuesSource.inner |
(package private) DoubleValuesSource |
DoubleValuesSource.DoubleValuesSortField.producer |
private DoubleValuesSource |
DoubleValuesSource.DoubleValuesComparatorSource.producer |
static DoubleValuesSource |
DoubleValuesSource.SCORES
A DoubleValuesSource that exposes a document's score
If this source is used as part of a values calculation, then callers must not
pass
null as the DoubleValues parameter on getValues(LeafReaderContext, DoubleValues) |
Modifier and Type | Method and Description |
---|---|
static DoubleValuesSource |
DoubleValuesSource.constant(double value)
Creates a DoubleValuesSource that always returns a constant value
|
static DoubleValuesSource |
DoubleValuesSource.fromDoubleField(java.lang.String field)
Creates a DoubleValuesSource that wraps a double-valued field
|
static DoubleValuesSource |
DoubleValuesSource.fromField(java.lang.String field,
java.util.function.LongToDoubleFunction decoder)
Creates a DoubleValuesSource that wraps a generic NumericDocValues field
|
static DoubleValuesSource |
DoubleValuesSource.fromFloatField(java.lang.String field)
Creates a DoubleValuesSource that wraps a float-valued field
|
static DoubleValuesSource |
DoubleValuesSource.fromIntField(java.lang.String field)
Creates a DoubleValuesSource that wraps an int-valued field
|
static DoubleValuesSource |
DoubleValuesSource.fromLongField(java.lang.String field)
Creates a DoubleValuesSource that wraps a long-valued field
|
static DoubleValuesSource |
DoubleValuesSource.fromQuery(Query query)
Create a DoubleValuesSource that returns the score of a particular query
|
abstract DoubleValuesSource |
DoubleValuesSource.rewrite(IndexSearcher reader)
Return a DoubleValuesSource specialised for the given IndexSearcher
Implementations should assume that this will only be called once.
|
DoubleValuesSource |
DoubleValuesSource.ConstantValuesSource.rewrite(IndexSearcher searcher) |
DoubleValuesSource |
DoubleValuesSource.FieldValuesSource.rewrite(IndexSearcher searcher) |
DoubleValuesSource |
DoubleValuesSource.QueryDoubleValuesSource.rewrite(IndexSearcher searcher) |
DoubleValuesSource |
DoubleValuesSource.WeightDoubleValuesSource.rewrite(IndexSearcher searcher) |
DoubleValuesSource |
LongValuesSource.DoubleLongValuesSource.rewrite(IndexSearcher searcher) |
DoubleValuesSource |
LongValuesSource.toDoubleValuesSource()
Convert to a DoubleValuesSource by casting long values to doubles
|
Constructor and Description |
---|
DoubleValuesComparatorSource(DoubleValuesSource producer) |
DoubleValuesSortField(DoubleValuesSource producer,
boolean reverse) |
LongDoubleValuesSource(DoubleValuesSource inner) |