Package org.opensearch.index.query.functionscore
package org.opensearch.index.query.functionscore
Foundation classes for implementing Function Scoring
-
ClassDescriptionImplement this interface to provide a decay function that is executed on a distance.DecayFunctionBuilder<DFB extends DecayFunctionBuilder<DFB>>Foundation builder for a decay functionThis is the base class for scoring a single field.DecayFunctionParser<DFB extends DecayFunctionBuilder<DFB>>Parser used for all decay functions, one instance each.Foundation builder for an exponential decayBuilder to construct
field_value_factor
functions for a function score query.A query that uses a filters with a script associated with them to compute the score.Function to be associated with an optional filter, meaning it will be executed only for the documents that match the given filter.Foundation builder for a gaussian decayFoundation builder for a linear decayA function that computes a random score for the matched documentsScoreFunctionBuilder<FB extends ScoreFunctionBuilder<FB>>Foundation builder for a score functionStatic method aliases for constructors of knownScoreFunctionBuilder
s.ScoreFunctionParser<FB extends ScoreFunctionBuilder<FB>>Parses XContent into aScoreFunctionBuilder
.A function that uses a script to compute or influence the score of documents that match with the inner query or filter.A query that computes a document score based on the provided scriptAn interface representing a term frequency function used to compute document scores based on specific term frequency calculations.A factory class for creating instances ofTermFrequencyFunction
.An enumeration representing the names of supported term frequency functions.A query that multiplies the weight to the score.