Uses of Class
org.apache.lucene.queries.function.ValueSource
Packages that use 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
Methods in org.apache.lucene.queries.function that return ValueSourceModifier and TypeMethodDescriptionstatic ValueSourceValueSource.fromDoubleValuesSource(DoubleValuesSource in) FunctionQuery.getValueSource()FunctionRangeQuery.getValueSource()Constructors in org.apache.lucene.queries.function with parameters of type ValueSourceModifierConstructorDescriptionFunctionQuery(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
Fields in org.apache.lucene.queries.function.docvalues declared as ValueSourceModifier and TypeFieldDescriptionprotected final ValueSourceBoolDocValues.vsprotected final ValueSourceDocTermsIndexDocValues.vsprotected final ValueSourceDoubleDocValues.vsprotected final ValueSourceFloatDocValues.vsprotected final ValueSourceIntDocValues.vsprotected final ValueSourceLongDocValues.vsprotected final ValueSourceStrDocValues.vsConstructors in org.apache.lucene.queries.function.docvalues with parameters of type ValueSourceModifierConstructorDescriptionDocTermsIndexDocValues(ValueSource vs, LeafReaderContext context, String field) protectedDocTermsIndexDocValues(ValueSource vs, SortedDocValues termsIndex) -
Uses of ValueSource in org.apache.lucene.queries.function.valuesource
Subclasses of ValueSource in org.apache.lucene.queries.function.valuesourceModifier and TypeClassDescriptionclassAbstract parent class for thoseValueSourceimplementations which apply boolean logic to their valuesclassAn implementation for retrievingFunctionValuesinstances for byte knn vectors fields.classAn implementation for retrievingFunctionValuesinstances for string based fields.classByteVectorSimilarityFunctionreturns a similarity function between two knn vectors with byte elements.classBase class for comparison operators useful within an "if"/conditional.classFunction that returns a constant byte vector value for every document.classFunction that returns a constant float vector value for every document.classConstNumberSourceis the base class for all constant numbersclassConstValueSourcereturns a constant for all documentsclassValueSourceimplementation which only returns the values from the provided ValueSources which are available for a particular docId.classFunction to divide "a" by "b"classDocFreqValueSourcereturns the number of documents containing the term.classFunction that returns a constant double value for every document.classObtains double field values fromLeafReader.getNumericDocValues(java.lang.String)and makes those values available as other numeric types, casting as needed.classAbstractValueSourceimplementation which wraps two ValueSources and applies an extendible float function to their values.classObtains int field values fromLeafReader.getNumericDocValues(java.lang.String)and makes those values available as other numeric types, casting as needed.classA base class for ValueSource implementations that retrieve values for a single field from DocValues.classObtains float field values fromLeafReader.getNumericDocValues(java.lang.String)and makes those values available as other numeric types, casting as needed.classAn implementation for retrievingFunctionValuesinstances for float knn vectors fields.classFloatVectorSimilarityFunctionreturns a similarity function between two knn vectors with float elements.classFunction that returns#idf(long, long)for every document.classDepending on the boolean value of theifSourcefunction, returns the value of thetrueSourceorfalseSourcefunction.classObtains int field values fromLeafReader.getNumericDocValues(java.lang.String)and makes those values available as other numeric types, casting as needed.classUse a field value and find the Document Frequency within another field.classLinearFloatFunctionimplements a linear function over anotherValueSource.classPass a the field value through as a String, no matter the type // Q: doesn't this mean it's a "string"?classObtains long field values fromLeafReader.getNumericDocValues(java.lang.String)and makes those values available as other numeric types, casting as needed.classReturns the value ofIndexReader.maxDoc()for every document.classMaxFloatFunctionreturns the max of its components.classMinFloatFunctionreturns the min of its components.classAbstractValueSourceimplementation which wraps multiple ValueSources and applies an extendible boolean function to their values.classAbstractValueSourceimplementation which wraps multiple ValueSources and applies an extendible float function to their values.classAbstract parent class forValueSourceimplementations that wrap multiple ValueSources and apply their own logic.classObtains double field values fromLeafReader.getSortedNumericDocValues(java.lang.String)and using aSortedNumericSelectorit gives a single-valued ValueSource view of a field.classObtains float field values fromLeafReader.getSortedNumericDocValues(java.lang.String)and using aSortedNumericSelectorit gives a single-valued ValueSource view of a field.classObtains int field values fromLeafReader.getSortedNumericDocValues(java.lang.String)and using aSortedNumericSelectorit gives a single-valued ValueSource view of a field.classObtains long field values fromLeafReader.getSortedNumericDocValues(java.lang.String)and using aSortedNumericSelectorit gives a single-valued ValueSource view of a field.classAValueSourcethat abstractly representsValueSources for poly fields, and other things.classFunction that returns the decoded norm for every document.classReturns the value ofIndexReader.numDocs()for every document.classFunction to raise the base "a" to the power "b"classProductFloatFunctionreturns the product of its components.classQueryValueSourcereturns the relevance score of the queryclassRangeMapFloatFunctionimplements a map function over anotherValueSourcewhose values fall within min and max inclusive to target.classReciprocalFloatFunctionimplements a reciprocal function f(x) = a/(mx+b), based on the float value of a field or function as exported byValueSource.classScales values to be between min and max.classBoolFunctionimplementation which applies an extendible boolean function to the values of a single wrappedValueSource.classA simple float function with a single argumentclassA function with a single argumentclassRetrievesFunctionValuesinstances for multi-valued string based fields.classSumFloatFunctionreturns the sum of its components.classSumTotalTermFreqValueSourcereturns the number of tokens.classFunction that returnsPostingsEnum.freq()for the supplied term in every document.classFunction that returnsTFIDFSimilarity.tf(float)for every document.classTotalTermFreqValueSourcereturns the total term freq (sum of term freqs across all documents).classVectorSimilarityFunctionreturns a similarity function between two knn vectors.classConverts 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 ValueSourceModifier and TypeFieldDescriptionprotected final ValueSourceDualFloatFunction.aprotected final ValueSourceDualFloatFunction.bprotected final ValueSourceRangeMapFloatFunction.defaultValprotected final ValueSourceLinearFloatFunction.sourceprotected final ValueSourceRangeMapFloatFunction.sourceprotected final ValueSourceReciprocalFloatFunction.sourceprotected final ValueSourceScaleFloatFunction.sourceprotected final ValueSourceSimpleBoolFunction.sourceprotected final ValueSourceSingleFunction.sourceprotected final ValueSource[]MultiFloatFunction.sourcesprotected final ValueSourceRangeMapFloatFunction.targetprotected final ValueSourceVectorFieldFunction.valueSourceprotected final ValueSourceVectorSimilarityFunction.vector1protected final ValueSourceVectorSimilarityFunction.vector2Fields in org.apache.lucene.queries.function.valuesource with type parameters of type ValueSourceModifier and TypeFieldDescriptionprotected final List<ValueSource> MultiBoolFunction.sourcesprotected final List<ValueSource> MultiFunction.sourcesprotected final List<ValueSource> VectorValueSource.sourcesMethods in org.apache.lucene.queries.function.valuesource that return types with arguments of type ValueSourceMethod parameters in org.apache.lucene.queries.function.valuesource with type arguments of type ValueSourceModifier and TypeMethodDescriptionstatic StringMultiFunction.description(String name, List<ValueSource> sources) static FunctionValues[]MultiFunction.valsArr(List<ValueSource> sources, Map<Object, Object> fcontext, LeafReaderContext readerContext) Constructors in org.apache.lucene.queries.function.valuesource with parameters of type ValueSourceModifierConstructorDescriptionByteVectorSimilarityFunction(VectorSimilarityFunction similarityFunction, ValueSource vector1, ValueSource vector2) ComparisonBoolFunction(ValueSource lhs, ValueSource rhs, String name) FloatVectorSimilarityFunction(VectorSimilarityFunction similarityFunction, ValueSource vector1, ValueSource vector2) 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) protectedVectorFieldFunction(ValueSource valueSource) VectorSimilarityFunction(VectorSimilarityFunction similarityFunction, ValueSource vector1, ValueSource vector2) Constructor parameters in org.apache.lucene.queries.function.valuesource with type arguments of type ValueSourceModifierConstructorDescriptionDefFunction(List<ValueSource> sources) MultiBoolFunction(List<ValueSource> sources) MultiFunction(List<ValueSource> sources) VectorValueSource(List<ValueSource> sources)