Uses of Class
org.apache.lucene.queries.function.ValueSource
Package
Description
Queries that compute score based upon a function.
FunctionValues for different data types.
A variety of functions to use with FunctionQuery.
-
Uses of ValueSource in org.apache.lucene.queries.function
Modifier and TypeMethodDescriptionstatic ValueSource
ValueSource.fromDoubleValuesSource
(DoubleValuesSource in) FunctionQuery.getValueSource()
FunctionRangeQuery.getValueSource()
ModifierConstructorDescriptionFunctionQuery
(ValueSource func) FunctionRangeQuery
(ValueSource valueSource, Number lowerVal, Number upperVal, boolean includeLower, boolean includeUpper) FunctionRangeQuery
(ValueSource valueSource, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper) -
Uses of ValueSource in org.apache.lucene.queries.function.docvalues
Modifier and TypeFieldDescriptionprotected final ValueSource
BoolDocValues.vs
protected final ValueSource
DocTermsIndexDocValues.vs
protected final ValueSource
DoubleDocValues.vs
protected final ValueSource
FloatDocValues.vs
protected final ValueSource
IntDocValues.vs
protected final ValueSource
LongDocValues.vs
protected final ValueSource
StrDocValues.vs
ModifierConstructorDescriptionDocTermsIndexDocValues
(ValueSource vs, LeafReaderContext context, String field) protected
DocTermsIndexDocValues
(ValueSource vs, SortedDocValues termsIndex) -
Uses of ValueSource in org.apache.lucene.queries.function.valuesource
Modifier and TypeClassDescriptionclass
Abstract parent class for thoseValueSource
implementations which apply boolean logic to their valuesclass
An implementation for retrievingFunctionValues
instances for string based fields.class
Base class for comparison operators useful within an "if"/conditional.class
ConstNumberSource
is the base class for all constant numbersclass
ConstValueSource
returns a constant for all documentsclass
ValueSource
implementation which only returns the values from the provided ValueSources which are available for a particular docId.class
Function to divide "a" by "b"class
DocFreqValueSource
returns the number of documents containing the term.class
Function that returns a constant double value for every document.class
Obtains double field values fromLeafReader.getNumericDocValues(java.lang.String)
and makes those values available as other numeric types, casting as needed.class
AbstractValueSource
implementation which wraps two ValueSources and applies an extendible float function to their values.class
Obtains int field values fromLeafReader.getNumericDocValues(java.lang.String)
and makes those values available as other numeric types, casting as needed.class
A base class for ValueSource implementations that retrieve values for a single field from DocValues.class
Obtains float field values fromLeafReader.getNumericDocValues(java.lang.String)
and makes those values available as other numeric types, casting as needed.class
Function that returns#idf(long, long)
for every document.class
Depending on the boolean value of theifSource
function, returns the value of thetrueSource
orfalseSource
function.class
Obtains int field values fromLeafReader.getNumericDocValues(java.lang.String)
and makes those values available as other numeric types, casting as needed.class
Use a field value and find the Document Frequency within another field.class
LinearFloatFunction
implements a linear function over anotherValueSource
.class
Pass a the field value through as a String, no matter the type // Q: doesn't this mean it's a "string"?class
Obtains long field values fromLeafReader.getNumericDocValues(java.lang.String)
and makes those values available as other numeric types, casting as needed.class
Returns the value ofIndexReader.maxDoc()
for every document.class
MaxFloatFunction
returns the max of its components.class
MinFloatFunction
returns the min of its components.class
AbstractValueSource
implementation which wraps multiple ValueSources and applies an extendible boolean function to their values.class
AbstractValueSource
implementation which wraps multiple ValueSources and applies an extendible float function to their values.class
Abstract parent class forValueSource
implementations that wrap multiple ValueSources and apply their own logic.class
Obtains double field values fromLeafReader.getSortedNumericDocValues(java.lang.String)
and using aSortedNumericSelector
it gives a single-valued ValueSource view of a field.class
Obtains float field values fromLeafReader.getSortedNumericDocValues(java.lang.String)
and using aSortedNumericSelector
it gives a single-valued ValueSource view of a field.class
Obtains int field values fromLeafReader.getSortedNumericDocValues(java.lang.String)
and using aSortedNumericSelector
it gives a single-valued ValueSource view of a field.class
Obtains long field values fromLeafReader.getSortedNumericDocValues(java.lang.String)
and using aSortedNumericSelector
it gives a single-valued ValueSource view of a field.class
AValueSource
that abstractly representsValueSource
s for poly fields, and other things.class
Function that returns the decoded norm for every document.class
Returns the value ofIndexReader.numDocs()
for every document.class
Function to raise the base "a" to the power "b"class
ProductFloatFunction
returns the product of its components.class
QueryValueSource
returns the relevance score of the queryclass
RangeMapFloatFunction
implements a map function over anotherValueSource
whose values fall within min and max inclusive to target.class
ReciprocalFloatFunction
implements a reciprocal function f(x) = a/(mx+b), based on the float value of a field or function as exported byValueSource
.class
Scales values to be between min and max.class
BoolFunction
implementation which applies an extendible boolean function to the values of a single wrappedValueSource
.class
A simple float function with a single argumentclass
A function with a single argumentclass
RetrievesFunctionValues
instances for multi-valued string based fields.class
SumFloatFunction
returns the sum of its components.class
SumTotalTermFreqValueSource
returns the number of tokens.class
Function that returnsPostingsEnum.freq()
for the supplied term in every document.class
Function that returnsTFIDFSimilarity.tf(float)
for every document.class
TotalTermFreqValueSource
returns the total term freq (sum of term freqs across all documents).class
Converts individual ValueSource instances to leverage the FunctionValues *Val functions that work with multiple values, i.e.Modifier and TypeFieldDescriptionprotected final ValueSource
DualFloatFunction.a
protected final ValueSource
DualFloatFunction.b
protected final ValueSource
RangeMapFloatFunction.defaultVal
protected final ValueSource
LinearFloatFunction.source
protected final ValueSource
RangeMapFloatFunction.source
protected final ValueSource
ReciprocalFloatFunction.source
protected final ValueSource
ScaleFloatFunction.source
protected final ValueSource
SimpleBoolFunction.source
protected final ValueSource
SingleFunction.source
protected final ValueSource[]
MultiFloatFunction.sources
protected final ValueSource
RangeMapFloatFunction.target
Modifier and TypeFieldDescriptionprotected final List<ValueSource>
MultiBoolFunction.sources
protected final List<ValueSource>
MultiFunction.sources
protected final List<ValueSource>
VectorValueSource.sources
Modifier and TypeMethodDescriptionstatic String
MultiFunction.description
(String name, List<ValueSource> sources) static FunctionValues[]
MultiFunction.valsArr
(List<ValueSource> sources, Map<Object, Object> fcontext, LeafReaderContext readerContext) ModifierConstructorDescriptionComparisonBoolFunction
(ValueSource lhs, ValueSource rhs, String name) IfFunction
(ValueSource ifSource, ValueSource trueSource, ValueSource falseSource) LinearFloatFunction
(ValueSource source, float slope, float intercept) MaxFloatFunction
(ValueSource[] sources) MinFloatFunction
(ValueSource[] sources) MultiFloatFunction
(ValueSource[] sources) ProductFloatFunction
(ValueSource[] sources) RangeMapFloatFunction
(ValueSource source, float min, float max, float target, Float def) RangeMapFloatFunction
(ValueSource source, float min, float max, ValueSource target, ValueSource def) ReciprocalFloatFunction
(ValueSource source, float m, float a, float b) f(source) = a/(m*float(source)+b)ScaleFloatFunction
(ValueSource source, float min, float max) SimpleBoolFunction
(ValueSource source) SimpleFloatFunction
(ValueSource source) SingleFunction
(ValueSource source) SumFloatFunction
(ValueSource[] sources) ModifierConstructorDescriptionDefFunction
(List<ValueSource> sources) MultiBoolFunction
(List<ValueSource> sources) MultiFunction
(List<ValueSource> sources) VectorValueSource
(List<ValueSource> sources)