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. -
-
Uses of ValueSource in org.apache.lucene.queries.function
Methods in org.apache.lucene.queries.function that return ValueSource Modifier and Type Method Description static ValueSourceValueSource. fromDoubleValuesSource(DoubleValuesSource in)ValueSourceFunctionQuery. getValueSource()ValueSourceFunctionRangeQuery. getValueSource()Constructors in org.apache.lucene.queries.function with parameters of type ValueSource Constructor Description FunctionQuery(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 ValueSource Modifier and Type Field Description protected ValueSourceBoolDocValues. vsprotected ValueSourceDocTermsIndexDocValues. vsprotected ValueSourceDoubleDocValues. vsprotected ValueSourceFloatDocValues. vsprotected ValueSourceIntDocValues. vsprotected ValueSourceLongDocValues. vsprotected ValueSourceStrDocValues. vsConstructors in org.apache.lucene.queries.function.docvalues with parameters of type ValueSource Constructor Description BoolDocValues(ValueSource vs)DocTermsIndexDocValues(ValueSource vs, LeafReaderContext context, 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 classBoolFunctionAbstract parent class for thoseValueSourceimplementations which apply boolean logic to their valuesclassByteKnnVectorFieldSourceAn implementation for retrievingFunctionValuesinstances for byte knn vectors fields.classBytesRefFieldSourceAn implementation for retrievingFunctionValuesinstances for string based fields.classByteVectorSimilarityFunctionByteVectorSimilarityFunctionreturns a similarity function between two knn vectors with byte elements.classComparisonBoolFunctionBase class for comparison operators useful within an "if"/conditional.classConstKnnByteVectorValueSourceFunction that returns a constant byte vector value for every document.classConstKnnFloatValueSourceFunction that returns a constant float vector value for every document.classConstNumberSourceConstNumberSourceis the base class for all constant numbersclassConstValueSourceConstValueSourcereturns a constant for all documentsclassDefFunctionValueSourceimplementation which only returns the values from the provided ValueSources which are available for a particular docId.classDivFloatFunctionFunction to divide "a" by "b"classDocFreqValueSourceDocFreqValueSourcereturns the number of documents containing the term.classDoubleConstValueSourceFunction that returns a constant double value for every document.classDoubleFieldSourceObtains double field values fromLeafReader.getNumericDocValues(java.lang.String)and makes those values available as other numeric types, casting as needed.classDualFloatFunctionAbstractValueSourceimplementation which wraps two ValueSources and applies an extendible float function to their values.classEnumFieldSourceObtains int field values fromLeafReader.getNumericDocValues(java.lang.String)and makes those values available as other numeric types, casting as needed.classFieldCacheSourceA base class for ValueSource implementations that retrieve values for a single field from DocValues.classFloatFieldSourceObtains float field values fromLeafReader.getNumericDocValues(java.lang.String)and makes those values available as other numeric types, casting as needed.classFloatKnnVectorFieldSourceAn implementation for retrievingFunctionValuesinstances for float knn vectors fields.classFloatVectorSimilarityFunctionFloatVectorSimilarityFunctionreturns a similarity function between two knn vectors with float elements.classIDFValueSourceFunction that returns#idf(long, long)for every document.classIfFunctionDepending on the boolean value of theifSourcefunction, returns the value of thetrueSourceorfalseSourcefunction.classIntFieldSourceObtains int field values fromLeafReader.getNumericDocValues(java.lang.String)and makes those values available as other numeric types, casting as needed.classJoinDocFreqValueSourceUse a field value and find the Document Frequency within another field.classLinearFloatFunctionLinearFloatFunctionimplements a linear function over anotherValueSource.classLiteralValueSourcePass a the field value through as a String, no matter the type // Q: doesn't this mean it's a "string"?classLongFieldSourceObtains long field values fromLeafReader.getNumericDocValues(java.lang.String)and makes those values available as other numeric types, casting as needed.classMaxDocValueSourceReturns the value ofIndexReader.maxDoc()for every document.classMaxFloatFunctionMaxFloatFunctionreturns the max of its components.classMinFloatFunctionMinFloatFunctionreturns the min of its components.classMultiBoolFunctionAbstractValueSourceimplementation which wraps multiple ValueSources and applies an extendible boolean function to their values.classMultiFloatFunctionAbstractValueSourceimplementation which wraps multiple ValueSources and applies an extendible float function to their values.classMultiFunctionAbstract parent class forValueSourceimplementations that wrap multiple ValueSources and apply their own logic.classMultiValuedDoubleFieldSourceObtains double field values fromLeafReader.getSortedNumericDocValues(java.lang.String)and using aSortedNumericSelectorit gives a single-valued ValueSource view of a field.classMultiValuedFloatFieldSourceObtains float field values fromLeafReader.getSortedNumericDocValues(java.lang.String)and using aSortedNumericSelectorit gives a single-valued ValueSource view of a field.classMultiValuedIntFieldSourceObtains int field values fromLeafReader.getSortedNumericDocValues(java.lang.String)and using aSortedNumericSelectorit gives a single-valued ValueSource view of a field.classMultiValuedLongFieldSourceObtains long field values fromLeafReader.getSortedNumericDocValues(java.lang.String)and using aSortedNumericSelectorit gives a single-valued ValueSource view of a field.classMultiValueSourceAValueSourcethat abstractly representsValueSources for poly fields, and other things.classNormValueSourceFunction that returns the decoded norm for every document.classNumDocsValueSourceReturns the value ofIndexReader.numDocs()for every document.classPowFloatFunctionFunction to raise the base "a" to the power "b"classProductFloatFunctionProductFloatFunctionreturns the product of its components.classQueryValueSourceQueryValueSourcereturns the relevance score of the queryclassRangeMapFloatFunctionRangeMapFloatFunctionimplements a map function over anotherValueSourcewhose values fall within min and max inclusive to target.classReciprocalFloatFunctionReciprocalFloatFunctionimplements a reciprocal function f(x) = a/(mx+b), based on the float value of a field or function as exported byValueSource.classScaleFloatFunctionScales values to be between min and max.classSimpleBoolFunctionBoolFunctionimplementation which applies an extendible boolean function to the values of a single wrappedValueSource.classSimpleFloatFunctionA simple float function with a single argumentclassSingleFunctionA function with a single argumentclassSortedSetFieldSourceRetrievesFunctionValuesinstances for multi-valued string based fields.classSumFloatFunctionSumFloatFunctionreturns the sum of its components.classSumTotalTermFreqValueSourceSumTotalTermFreqValueSourcereturns the number of tokens.classTermFreqValueSourceFunction that returnsPostingsEnum.freq()for the supplied term in every document.classTFValueSourceFunction that returnsTFIDFSimilarity.tf(float)for every document.classTotalTermFreqValueSourceTotalTermFreqValueSourcereturns the total term freq (sum of term freqs across all documents).classVectorSimilarityFunctionVectorSimilarityFunctionreturns a similarity function between two knn vectors.classVectorValueSourceConverts 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 ValueSourceDualFloatFunction. aprotected ValueSourceDualFloatFunction. bprotected ValueSourceRangeMapFloatFunction. defaultValprotected ValueSourceLinearFloatFunction. sourceprotected ValueSourceRangeMapFloatFunction. sourceprotected ValueSourceReciprocalFloatFunction. sourceprotected ValueSourceScaleFloatFunction. sourceprotected ValueSourceSimpleBoolFunction. sourceprotected ValueSourceSingleFunction. sourceprotected ValueSource[]MultiFloatFunction. sourcesprotected ValueSourceRangeMapFloatFunction. targetprotected ValueSourceVectorFieldFunction. valueSourceprotected ValueSourceVectorSimilarityFunction. vector1protected ValueSourceVectorSimilarityFunction. vector2Fields in org.apache.lucene.queries.function.valuesource with type parameters of type ValueSource Modifier and Type Field Description protected List<ValueSource>MultiBoolFunction. sourcesprotected List<ValueSource>MultiFunction. sourcesprotected List<ValueSource>VectorValueSource. sourcesMethods in org.apache.lucene.queries.function.valuesource that return types with arguments of type ValueSource Modifier and Type Method Description 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 StringMultiFunction. description(String name, List<ValueSource> sources)static FunctionValues[]MultiFunction. valsArr(List<ValueSource> sources, Map<Object,Object> fcontext, LeafReaderContext readerContext)Constructor parameters in org.apache.lucene.queries.function.valuesource with type arguments of type ValueSource Constructor Description DefFunction(List<ValueSource> sources)MultiBoolFunction(List<ValueSource> sources)MultiFunction(List<ValueSource> sources)VectorValueSource(List<ValueSource> sources)
-