Expand description
Strongly typed Elasticsearch query params
Structs§
- Decay
- 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.
- Field
Value Factor - The
field_value_factor
function allows you to use a field from a document to influence the score. It’s similar to using thescript_score
function, 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. - Inner
Hits - 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.
- Negative
Boost - A container type for boost values
- Pinned
Document - Pinned document
- Random
Score - The
random_score
generates scores that are uniformly distributed from0
up to but not including1
. - Script
- 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.
- Script
Score - 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
- Terms
SetScript - Custom script containing the number of matching terms required to return a document.
- Weight
- The
weight
score allows you to multiply the score by the provided weight.
Enums§
- Decay
Function - Decay function variants
- Field
Value Factor Modifier - Modifier to apply to the field value
- Function
- Functions available for use in FunctionScoreQuery
- Function
Boost Mode - The newly computed score is combined with the score of the query. The parameter
boost_mode
defines how. - Function
Score Mode - Each document is scored by the defined functions. The parameter
score_mode
specifies how the computed scores are combined - Fuzziness
- Some queries and APIs support parameters to allow inexact fuzzy matching,
using the
fuzziness
parameter. - GeoBounding
Box - Different representations of geo bounding box
- HasChild
Score Mode - Indicates how scores for matching child documents affect the root parent document’s relevance score.
- Nested
Query Score Mode - Indicates how scores for matching child objects affect the root parent document’s relevance score.
- Operator
- Boolean logic used to interpret text in the
query
value - Percolate
Source - Values that can be percolated
- Pinned
Query Values - Ids or documents to filter by
- Range
Relation - Indicates how the range query matches values for range fields.
- Regexp
Flag - You can use the flags parameter to enable more optional operators for Lucene’s regular expression engine.
- Rewrite
- Method used to rewrite the query.
- Script
Lang - Available scripting language
- Script
Source - The script itself, which you specify as
source
for an inline script orid
for a stored script. Use the stored script APIs to create and manage stored scripts. - Simple
Query String Query Flags - You can use the flags parameter to enable more optional operators for Lucene’s regular expression engine.
- Spatial
Relation - Relation between coordinates
- Stored
Fields - It’s also possible to store an individual field’s values by using the store mapping option.
- Terms
SetMinimum Should Match - Number of matching terms to be required
- Text
Query Type - The way the
multi_match
query is executed internally. - Validation
Method - Strategies to verify the correctness of coordinates
- Zero
Terms Query - Indicates whether no documents are returned if the
analyzer
removes all tokens, such as when using astop
filter.