Uses of Class
org.apache.lucene.queries.function.ValueSource
-
Packages that use ValueSource Package Description org.apache.lucene.queries.function Queries that compute score based upon a function.org.apache.lucene.queries.function.docvalues FunctionValues for different data types.org.apache.lucene.queries.function.valuesource A variety of functions to use with FunctionQuery.org.apache.lucene.search.grouping Grouping. -
-
Uses of ValueSource in org.apache.lucene.queries.function
Subclasses of ValueSource in org.apache.lucene.queries.function Modifier and Type Class Description private static class
ValueSource.FromDoubleValuesSource
Fields in org.apache.lucene.queries.function declared as ValueSource Modifier and Type Field Description (package private) ValueSource
FunctionQuery. func
(package private) ValueSource
ValueSource.WrappedDoubleValuesSource. in
private ValueSource
ValueSource.WrappedLongValuesSource. in
private ValueSource
FunctionRangeQuery. valueSource
Methods in org.apache.lucene.queries.function that return ValueSource Modifier and Type Method Description static ValueSource
ValueSource. fromDoubleValuesSource(DoubleValuesSource in)
ValueSource
FunctionQuery. getValueSource()
ValueSource
FunctionRangeQuery. getValueSource()
Constructors in org.apache.lucene.queries.function with parameters of type ValueSource Constructor Description FunctionQuery(ValueSource func)
FunctionRangeQuery(ValueSource valueSource, java.lang.Number lowerVal, java.lang.Number upperVal, boolean includeLower, boolean includeUpper)
FunctionRangeQuery(ValueSource valueSource, java.lang.String lowerVal, java.lang.String upperVal, boolean includeLower, boolean includeUpper)
WrappedDoubleValuesSource(ValueSource in, IndexSearcher searcher)
WrappedLongValuesSource(ValueSource in, IndexSearcher searcher)
-
Uses of ValueSource in org.apache.lucene.queries.function.docvalues
Fields in org.apache.lucene.queries.function.docvalues declared as ValueSource Modifier and Type Field Description protected ValueSource
BoolDocValues. vs
protected ValueSource
DocTermsIndexDocValues. vs
protected ValueSource
DoubleDocValues. vs
protected ValueSource
FloatDocValues. vs
protected ValueSource
IntDocValues. vs
protected ValueSource
LongDocValues. vs
protected ValueSource
StrDocValues. vs
Constructors in org.apache.lucene.queries.function.docvalues with parameters of type ValueSource Constructor Description BoolDocValues(ValueSource vs)
DocTermsIndexDocValues(ValueSource vs, LeafReaderContext context, java.lang.String field)
DocTermsIndexDocValues(ValueSource vs, SortedDocValues termsIndex)
DoubleDocValues(ValueSource vs)
FloatDocValues(ValueSource vs)
IntDocValues(ValueSource vs)
LongDocValues(ValueSource vs)
StrDocValues(ValueSource vs)
-
Uses of ValueSource in org.apache.lucene.queries.function.valuesource
Subclasses of ValueSource in org.apache.lucene.queries.function.valuesource Modifier and Type Class Description class
BoolFunction
Abstract parent class for thoseValueSource
implementations which apply boolean logic to their valuesclass
BytesRefFieldSource
An implementation for retrievingFunctionValues
instances for string based fields.class
ComparisonBoolFunction
Base class for comparison operators useful within an "if"/conditional.class
ConstNumberSource
ConstNumberSource
is the base class for all constant numbersclass
ConstValueSource
ConstValueSource
returns a constant for all documentsclass
DefFunction
ValueSource
implementation which only returns the values from the provided ValueSources which are available for a particular docId.class
DivFloatFunction
Function to divide "a" by "b"class
DocFreqValueSource
DocFreqValueSource
returns the number of documents containing the term.class
DoubleConstValueSource
Function that returns a constant double value for every document.class
DoubleFieldSource
Obtains double field values fromLeafReader.getNumericDocValues(java.lang.String)
and makes those values available as other numeric types, casting as needed.class
DualFloatFunction
AbstractValueSource
implementation which wraps two ValueSources and applies an extendible float function to their values.class
EnumFieldSource
Obtains int field values fromLeafReader.getNumericDocValues(java.lang.String)
and makes those values available as other numeric types, casting as needed.class
FieldCacheSource
A base class for ValueSource implementations that retrieve values for a single field from DocValues.class
FloatFieldSource
Obtains float field values fromLeafReader.getNumericDocValues(java.lang.String)
and makes those values available as other numeric types, casting as needed.class
IDFValueSource
Function that returns#idf(long, long)
for every document.class
IfFunction
Depending on the boolean value of theifSource
function, returns the value of thetrueSource
orfalseSource
function.class
IntFieldSource
Obtains int field values fromLeafReader.getNumericDocValues(java.lang.String)
and makes those values available as other numeric types, casting as needed.class
JoinDocFreqValueSource
Use a field value and find the Document Frequency within another field.class
LinearFloatFunction
LinearFloatFunction
implements a linear function over anotherValueSource
.class
LiteralValueSource
Pass a the field value through as a String, no matter the type // Q: doesn't this mean it's a "string"?class
LongFieldSource
Obtains long field values fromLeafReader.getNumericDocValues(java.lang.String)
and makes those values available as other numeric types, casting as needed.class
MaxDocValueSource
Returns the value ofIndexReader.maxDoc()
for every document.class
MaxFloatFunction
MaxFloatFunction
returns the max of its components.class
MinFloatFunction
MinFloatFunction
returns the min of its components.class
MultiBoolFunction
AbstractValueSource
implementation which wraps multiple ValueSources and applies an extendible boolean function to their values.class
MultiFloatFunction
AbstractValueSource
implementation which wraps multiple ValueSources and applies an extendible float function to their values.class
MultiFunction
Abstract parent class forValueSource
implementations that wrap multiple ValueSources and apply their own logic.class
MultiValuedDoubleFieldSource
Obtains double field values fromLeafReader.getSortedNumericDocValues(java.lang.String)
and using aSortedNumericSelector
it gives a single-valued ValueSource view of a field.class
MultiValuedFloatFieldSource
Obtains float field values fromLeafReader.getSortedNumericDocValues(java.lang.String)
and using aSortedNumericSelector
it gives a single-valued ValueSource view of a field.class
MultiValuedIntFieldSource
Obtains int field values fromLeafReader.getSortedNumericDocValues(java.lang.String)
and using aSortedNumericSelector
it gives a single-valued ValueSource view of a field.class
MultiValuedLongFieldSource
Obtains long field values fromLeafReader.getSortedNumericDocValues(java.lang.String)
and using aSortedNumericSelector
it gives a single-valued ValueSource view of a field.class
MultiValueSource
AValueSource
that abstractly representsValueSource
s for poly fields, and other things.class
NormValueSource
Function that returns the decoded norm for every document.class
NumDocsValueSource
Returns the value ofIndexReader.numDocs()
for every document.class
PowFloatFunction
Function to raise the base "a" to the power "b"class
ProductFloatFunction
ProductFloatFunction
returns the product of its components.class
QueryValueSource
QueryValueSource
returns the relevance score of the queryclass
RangeMapFloatFunction
RangeMapFloatFunction
implements a map function over anotherValueSource
whose values fall within min and max inclusive to target.class
ReciprocalFloatFunction
ReciprocalFloatFunction
implements a reciprocal function f(x) = a/(mx+b), based on the float value of a field or function as exported byValueSource
.class
ScaleFloatFunction
Scales values to be between min and max.class
SimpleBoolFunction
BoolFunction
implementation which applies an extendible boolean function to the values of a single wrappedValueSource
.class
SimpleFloatFunction
A simple float function with a single argumentclass
SingleFunction
A function with a single argumentclass
SortedSetFieldSource
RetrievesFunctionValues
instances for multi-valued string based fields.class
SumFloatFunction
SumFloatFunction
returns the sum of its components.class
SumTotalTermFreqValueSource
SumTotalTermFreqValueSource
returns the number of tokens.class
TermFreqValueSource
Function that returnsPostingsEnum.freq()
for the supplied term in every document.class
TFValueSource
Function that returnsTFIDFSimilarity.tf(float)
for every document.class
TotalTermFreqValueSource
TotalTermFreqValueSource
returns the total term freq (sum of term freqs across all documents).class
VectorValueSource
Converts individual ValueSource instances to leverage the FunctionValues *Val functions that work with multiple values, i.e.Fields in org.apache.lucene.queries.function.valuesource declared as ValueSource Modifier and Type Field Description protected ValueSource
DualFloatFunction. a
protected ValueSource
DualFloatFunction. b
protected ValueSource
RangeMapFloatFunction. defaultVal
private ValueSource
IfFunction. falseSource
private ValueSource
IfFunction. ifSource
private ValueSource
ComparisonBoolFunction. lhs
(package private) ValueSource
DocFreqValueSource.ConstDoubleDocValues. parent
(package private) ValueSource
DocFreqValueSource.ConstIntDocValues. parent
private ValueSource
ComparisonBoolFunction. rhs
protected ValueSource
LinearFloatFunction. source
protected ValueSource
RangeMapFloatFunction. source
protected ValueSource
ReciprocalFloatFunction. source
protected ValueSource
ScaleFloatFunction. source
protected ValueSource
SimpleBoolFunction. source
protected ValueSource
SingleFunction. source
protected ValueSource[]
MultiFloatFunction. sources
protected ValueSource
RangeMapFloatFunction. target
private ValueSource
IfFunction. trueSource
Fields in org.apache.lucene.queries.function.valuesource with type parameters of type ValueSource Modifier and Type Field Description protected java.util.List<ValueSource>
MultiBoolFunction. sources
protected java.util.List<ValueSource>
MultiFunction. sources
protected java.util.List<ValueSource>
VectorValueSource. sources
Methods in org.apache.lucene.queries.function.valuesource that return types with arguments of type ValueSource Modifier and Type Method Description java.util.List<ValueSource>
VectorValueSource. getSources()
Method parameters in org.apache.lucene.queries.function.valuesource with type arguments of type ValueSource Modifier and Type Method Description static java.lang.String
MultiFunction. description(java.lang.String name, java.util.List<ValueSource> sources)
static FunctionValues[]
MultiFunction. valsArr(java.util.List<ValueSource> sources, java.util.Map<java.lang.Object,java.lang.Object> fcontext, LeafReaderContext readerContext)
Constructor parameters in org.apache.lucene.queries.function.valuesource with type arguments of type ValueSource Constructor Description DefFunction(java.util.List<ValueSource> sources)
MultiBoolFunction(java.util.List<ValueSource> sources)
MultiFunction(java.util.List<ValueSource> sources)
VectorValueSource(java.util.List<ValueSource> sources)
-
Uses of ValueSource in org.apache.lucene.search.grouping
Fields in org.apache.lucene.search.grouping declared as ValueSource Modifier and Type Field Description private ValueSource
ValueSourceGroupSelector. valueSource
Constructors in org.apache.lucene.search.grouping with parameters of type ValueSource Constructor Description GroupingSearch(ValueSource groupFunction, java.util.Map<java.lang.Object,java.lang.Object> valueSourceContext)
Constructs aGroupingSearch
instance that groups documents by function using aValueSource
instance.ValueSourceGroupSelector(ValueSource valueSource, java.util.Map<java.lang.Object,java.lang.Object> context)
Create a new ValueSourceGroupSelector
-