Package | Description |
---|---|
org.apache.lucene.document |
The logical representation of a
Document for indexing and searching. |
org.apache.lucene.expressions |
Expressions.
|
org.apache.lucene.queries.function |
Queries that compute score based upon a function.
|
org.apache.lucene.search |
Code to search indices.
|
Modifier and Type | Method and Description |
---|---|
static DoubleValuesSource |
FeatureField.newDoubleValues(String field,
String featureName)
Creates a
DoubleValuesSource instance which can be used to read the values of a feature from the a
FeatureField for documents. |
Modifier and Type | Method and Description |
---|---|
DoubleValuesSource |
Expression.getDoubleValuesSource(Bindings bindings)
Get a DoubleValuesSource which can compute the value of this expression in the context of the given bindings.
|
DoubleValuesSource |
SimpleBindings.getDoubleValuesSource(String name) |
abstract DoubleValuesSource |
Bindings.getDoubleValuesSource(String name)
Returns a DoubleValuesSource bound to the variable name
|
Modifier and Type | Method and Description |
---|---|
void |
SimpleBindings.add(String name,
DoubleValuesSource source)
Bind a
DoubleValuesSource directly to the given name. |
Modifier and Type | Method and Description |
---|---|
DoubleValuesSource |
ValueSource.asDoubleValuesSource()
Expose this ValueSource as a DoubleValuesSource
|
static DoubleValuesSource |
IndexReaderFunctions.docCount(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
|
static DoubleValuesSource |
IndexReaderFunctions.sumDocFreq(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 |
---|
FunctionMatchQuery(DoubleValuesSource source,
DoublePredicate filter)
Create a FunctionMatchQuery
|
FunctionScoreQuery(Query in,
DoubleValuesSource source)
Create a new FunctionScoreQuery
|
Modifier and Type | Field and Description |
---|---|
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(String field)
Creates a DoubleValuesSource that wraps a double-valued field
|
static DoubleValuesSource |
DoubleValuesSource.fromField(String field,
LongToDoubleFunction decoder)
Creates a DoubleValuesSource that wraps a generic NumericDocValues field
|
static DoubleValuesSource |
DoubleValuesSource.fromFloatField(String field)
Creates a DoubleValuesSource that wraps a float-valued field
|
static DoubleValuesSource |
DoubleValuesSource.fromIntField(String field)
Creates a DoubleValuesSource that wraps an int-valued field
|
static DoubleValuesSource |
DoubleValuesSource.fromLongField(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 |
LongValuesSource.toDoubleValuesSource()
Convert to a DoubleValuesSource by casting long values to doubles
|
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.