Uses of Class
org.apache.lucene.search.DoubleValuesSource
Packages that use DoubleValuesSource
Package
Description
The logical representation of a
Document for indexing and
searching.Expressions.
Queries that compute score based upon a function.
Code to search indices.
Grouping.
-
Uses of DoubleValuesSource in org.apache.lucene.document
Subclasses of DoubleValuesSource in org.apache.lucene.documentModifier and TypeClassDescription(package private) classADoubleValuesSourceinstance which can be used to read the values of a feature from aFeatureFieldfor documents.Methods in org.apache.lucene.document that return DoubleValuesSourceModifier and TypeMethodDescriptionstatic DoubleValuesSourceFeatureField.newDoubleValues(String field, String featureName) Creates aDoubleValuesSourceinstance which can be used to read the values of a feature from the aFeatureFieldfor documents.FeatureDoubleValuesSource.rewrite(IndexSearcher reader) -
Uses of DoubleValuesSource in org.apache.lucene.expressions
Subclasses of DoubleValuesSource in org.apache.lucene.expressionsModifier and TypeClassDescription(package private) final classThis expression value source shares one value cache when generatingExpressionFunctionValuessuch that only one value along the whole generation tree is corresponding to one name(package private) classFields in org.apache.lucene.expressions declared as DoubleValuesSourceModifier and TypeFieldDescription(package private) final DoubleValuesSource[]ExpressionValueSource.variablesFields in org.apache.lucene.expressions with type parameters of type DoubleValuesSourceModifier and TypeFieldDescriptionprivate final Map<String, Function<Bindings, DoubleValuesSource>> SimpleBindings.mapMethods in org.apache.lucene.expressions that return DoubleValuesSourceModifier and TypeMethodDescriptionabstract DoubleValuesSourceBindings.getDoubleValuesSource(String name) Returns a DoubleValuesSource bound to the variable nameExpression.getDoubleValuesSource(Bindings bindings) Get a DoubleValuesSource which can compute the value of this expression in the context of the given bindings.SimpleBindings.CycleDetectionBindings.getDoubleValuesSource(String name) SimpleBindings.getDoubleValuesSource(String name) ExpressionValueSource.rewrite(IndexSearcher searcher) Methods in org.apache.lucene.expressions with parameters of type DoubleValuesSourceModifier and TypeMethodDescriptionvoidSimpleBindings.add(String name, DoubleValuesSource source) Bind aDoubleValuesSourcedirectly to the given name.Constructors in org.apache.lucene.expressions with parameters of type DoubleValuesSourceModifierConstructorDescription(package private)CachingExpressionValueSource(DoubleValuesSource[] variables, Expression expression, boolean needsScores) (package private)ExpressionValueSource(DoubleValuesSource[] variables, Expression expression, boolean needsScores) -
Uses of DoubleValuesSource in org.apache.lucene.queries.function
Subclasses of DoubleValuesSource in org.apache.lucene.queries.functionModifier and TypeClassDescription(package private) static classprivate static classprivate static classprivate static classprivate static class(package private) static classFields in org.apache.lucene.queries.function declared as DoubleValuesSourceModifier and TypeFieldDescription(package private) final DoubleValuesSourceFunctionScoreQuery.MultiplicativeBoostValuesSource.boost(package private) final DoubleValuesSourceValueSource.FromDoubleValuesSource.in(package private) final DoubleValuesSourceIndexReaderFunctions.NoCacheConstantDoubleValuesSource.parentprivate final DoubleValuesSourceFunctionScoreQuery.QueryBoostValuesSource.queryprivate final DoubleValuesSourceFunctionMatchQuery.sourceprivate final DoubleValuesSourceFunctionScoreQuery.source(package private) final DoubleValuesSourceFunctionScoreQuery.FunctionScoreWeight.valueSourceMethods in org.apache.lucene.queries.function that return DoubleValuesSourceModifier and TypeMethodDescriptionValueSource.asDoubleValuesSource()Expose this ValueSource as a DoubleValuesSourcestatic DoubleValuesSourceCreates a constant value source returning the docCount for a given fieldstatic DoubleValuesSourceCreates a constant value source returning the docFreq of a given termFunctionScoreQuery.getSource()static DoubleValuesSourceIndexReaderFunctions.maxDoc()Creates a constant value source returning the index's maxDocstatic DoubleValuesSourceIndexReaderFunctions.numDeletedDocs()Creates a constant value source returning the number of deleted docs in the indexstatic DoubleValuesSourceIndexReaderFunctions.numDocs()Creates a constant value source returning the index's numDocsFunctionScoreQuery.MultiplicativeBoostValuesSource.rewrite(IndexSearcher reader) FunctionScoreQuery.QueryBoostValuesSource.rewrite(IndexSearcher reader) IndexReaderFunctions.IndexReaderDoubleValuesSource.rewrite(IndexSearcher searcher) IndexReaderFunctions.NoCacheConstantDoubleValuesSource.rewrite(IndexSearcher reader) IndexReaderFunctions.TermFreqDoubleValuesSource.rewrite(IndexSearcher searcher) ValueSource.WrappedDoubleValuesSource.rewrite(IndexSearcher searcher) static DoubleValuesSourceIndexReaderFunctions.sumDocFreq(String field) Creates a constant value source returning the sumDocFreq for a given fieldstatic DoubleValuesSourceCreates a value source that returns the term freq of a given term for each documentstatic DoubleValuesSourceIndexReaderFunctions.totalTermFreq(Term term) Creates a constant value source returning the totalTermFreq for a given termMethods in org.apache.lucene.queries.function with parameters of type DoubleValuesSourceModifier and TypeMethodDescriptionstatic FunctionScoreQueryFunctionScoreQuery.boostByValue(Query in, DoubleValuesSource boost) Returns a FunctionScoreQuery where the scores of a wrapped query are multiplied by the value of a DoubleValuesSource.static ValueSourceValueSource.fromDoubleValuesSource(DoubleValuesSource in) Constructors in org.apache.lucene.queries.function with parameters of type DoubleValuesSourceModifierConstructorDescriptionprivateFunctionMatchQuery(DoubleValuesSource source, DoublePredicate filter) Create a FunctionMatchQuery with default TwoPhaseIterator matchCost -FunctionMatchQuery.DEFAULT_MATCH_COST= 100.0fFunctionMatchQuery(DoubleValuesSource source, DoublePredicate filter, float matchCost) Create a FunctionMatchQueryFunctionScoreQuery(Query in, DoubleValuesSource source) Create a new FunctionScoreQuery(package private)FunctionScoreWeight(Query query, Weight inner, DoubleValuesSource valueSource, float boost) privateprivateNoCacheConstantDoubleValuesSource(double value, DoubleValuesSource parent) (package private)QueryBoostValuesSource(DoubleValuesSource query, float boost) -
Uses of DoubleValuesSource in org.apache.lucene.search
Subclasses of DoubleValuesSource in org.apache.lucene.searchModifier and TypeClassDescription(package private) classADoubleValuesSourcewhich computes the vector similarity scores between the query vector and theKnnByteVectorFieldfor documents.private static classprivate static classprivate static classprivate static class(package private) classADoubleValuesSourcewhich computes the vector similarity scores between the query vector and theKnnFloatVectorFieldfor documents.private static class(package private) classAn abstract class that provides the vector similarity scores between the query vector and theKnnFloatVectorFieldorKnnByteVectorFieldfor documents.Fields in org.apache.lucene.search declared as DoubleValuesSourceModifier and TypeFieldDescriptionprivate final DoubleValuesSourceDoubleValuesSource.LongDoubleValuesSource.innerprivate final DoubleValuesSourceDoubleValuesSource.DoubleValuesComparatorSource.producer(package private) final DoubleValuesSourceDoubleValuesSource.DoubleValuesSortField.producerstatic final DoubleValuesSourceDoubleValuesSource.SCORESA DoubleValuesSource that exposes a document's scoreMethods in org.apache.lucene.search that return DoubleValuesSourceModifier and TypeMethodDescriptionstatic DoubleValuesSourceDoubleValuesSource.constant(double value) Creates a DoubleValuesSource that always returns a constant valuestatic DoubleValuesSourceDoubleValuesSource.fromDoubleField(String field) Creates a DoubleValuesSource that wraps a double-valued fieldstatic DoubleValuesSourceDoubleValuesSource.fromField(String field, LongToDoubleFunction decoder) Creates a DoubleValuesSource that wraps a generic NumericDocValues fieldstatic DoubleValuesSourceDoubleValuesSource.fromFloatField(String field) Creates a DoubleValuesSource that wraps a float-valued fieldstatic DoubleValuesSourceDoubleValuesSource.fromIntField(String field) Creates a DoubleValuesSource that wraps an int-valued fieldstatic DoubleValuesSourceDoubleValuesSource.fromLongField(String field) Creates a DoubleValuesSource that wraps a long-valued fieldstatic DoubleValuesSourceCreate a DoubleValuesSource that returns the score of a particular queryDoubleValuesSource.ConstantValuesSource.rewrite(IndexSearcher searcher) DoubleValuesSource.FieldValuesSource.rewrite(IndexSearcher searcher) DoubleValuesSource.QueryDoubleValuesSource.rewrite(IndexSearcher searcher) abstract DoubleValuesSourceDoubleValuesSource.rewrite(IndexSearcher reader) Return a DoubleValuesSource specialised for the given IndexSearcherDoubleValuesSource.WeightDoubleValuesSource.rewrite(IndexSearcher searcher) LongValuesSource.DoubleLongValuesSource.rewrite(IndexSearcher searcher) VectorSimilarityValuesSource.rewrite(IndexSearcher reader) LongValuesSource.toDoubleValuesSource()Convert to a DoubleValuesSource by casting long values to doublesConstructors in org.apache.lucene.search with parameters of type DoubleValuesSourceModifierConstructorDescription(package private)(package private)DoubleValuesSortField(DoubleValuesSource producer, boolean reverse) private -
Uses of DoubleValuesSource in org.apache.lucene.search.grouping
Fields in org.apache.lucene.search.grouping declared as DoubleValuesSourceModifier and TypeFieldDescriptionprivate final DoubleValuesSourceDoubleRangeGroupSelector.sourceConstructors in org.apache.lucene.search.grouping with parameters of type DoubleValuesSourceModifierConstructorDescriptionDoubleRangeGroupSelector(DoubleValuesSource source, DoubleRangeFactory rangeFactory) Creates a new DoubleRangeGroupSelector