Module elasticsearch_dsl::search::queries::params
source · Expand description
Strongly typed Elasticsearch query params
Structs§
- Decay functions score a document with a function that decays depending on the distance of a numeric field value of the document from a user given origin. This is similar to a range query, but with smooth edges instead of boxes.
- The
field_value_factorfunction allows you to use a field from a document to influence the score. It’s similar to using thescript_scorefunction, however, it avoids the overhead of scripting. If used on a multi-valued field, only the first value of the field is used in calculations. - The parent-join and nested features allow the return of documents that have matches in a different scope. In the parent/child case, parent documents are returned based on matches in child documents or child documents are returned based on matches in parent documents. In the nested case, documents are returned based on matches in nested inner objects.
- A container type for boost values
- Pinned document
- The
random_scoregenerates scores that are uniformly distributed from0up to but not including1. - Wherever scripting is supported in the Elasticsearch APIs, the syntax follows the same pattern; you specify the language of your script, provide the script logic (or source, and add parameters that are passed into the script.
- The script_score function allows you to wrap another query and customize the scoring of it optionally with a computation derived from other numeric field values in the doc using a script expression
- Custom script containing the number of matching terms required to return a document.
- The
weightscore allows you to multiply the score by the provided weight.
Enums§
- Decay function variants
- Modifier to apply to the field value
- Functions available for use in FunctionScoreQuery
- The newly computed score is combined with the score of the query. The parameter
boost_modedefines how. - Each document is scored by the defined functions. The parameter
score_modespecifies how the computed scores are combined - Some queries and APIs support parameters to allow inexact fuzzy matching, using the
fuzzinessparameter. - Different representations of geo bounding box
- Indicates how scores for matching child documents affect the root parent document’s relevance score.
- Indicates how scores for matching child objects affect the root parent document’s relevance score.
- Boolean logic used to interpret text in the
queryvalue - Values that can be percolated
- Ids or documents to filter by
- Indicates how the range query matches values for range fields.
- You can use the flags parameter to enable more optional operators for Lucene’s regular expression engine.
- Method used to rewrite the query.
- Available scripting language
- The script itself, which you specify as
sourcefor an inline script oridfor a stored script. Use the stored script APIs to create and manage stored scripts. - You can use the flags parameter to enable more optional operators for Lucene’s regular expression engine.
- Relation between coordinates
- It’s also possible to store an individual field’s values by using the store mapping option.
- Number of matching terms to be required
- The way the
multi_matchquery is executed internally. - Strategies to verify the correctness of coordinates
- Indicates whether no documents are returned if the
analyzerremoves all tokens, such as when using astopfilter.