Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 47 additions & 67 deletions protos/generated/models/aggregated_models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2225,17 +2225,14 @@ message FunctionScoreContainer {

optional float weight = 2;

optional DecayFunction exp = 3;

optional DecayFunction gauss = 4;

optional DecayFunction linear = 5;

optional FieldValueFactorScoreFunction field_value_factor = 6;

optional RandomScoreFunction random_score = 7;

optional ScriptScoreFunction script_score = 8;
oneof function_score_container {
DecayFunction exp = 3;
DecayFunction gauss = 4;
DecayFunction linear = 5;
FieldValueFactorScoreFunction field_value_factor = 6;
RandomScoreFunction random_score = 7;
ScriptScoreFunction script_score = 8;
}
}
enum FunctionScoreMode {
FUNCTION_SCORE_MODE_UNSPECIFIED = 0;
Expand Down Expand Up @@ -4311,43 +4308,41 @@ message MultiMatchQuery {
// If `true`, match phrase queries are automatically created for multi-term synonyms.
optional bool auto_generate_synonyms_phrase_query = 4;

optional float cutoff_frequency = 5;

// A comma-separated list or a wildcard expression specifying the fields to include in the statistics. Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.
repeated string fields = 6;
repeated string fields = 5;

optional Fuzziness fuzziness = 7;
optional Fuzziness fuzziness = 6;

optional MultiTermQueryRewrite fuzzy_rewrite = 8;
optional MultiTermQueryRewrite fuzzy_rewrite = 7;

// If `true`, edits for fuzzy matching include transpositions of two adjacent characters (for example, `ab` to `ba`). Can be applied to the term subqueries constructed for all terms but the final term.
optional bool fuzzy_transpositions = 9;
optional bool fuzzy_transpositions = 8;

// If `true`, format-based errors, such as providing a text query value for a numeric field, are ignored.
optional bool lenient = 10;
optional bool lenient = 9;

// Maximum number of terms to which the query will expand.
optional int32 max_expansions = 11;
optional int32 max_expansions = 10;

optional MinimumShouldMatch minimum_should_match = 12;
optional MinimumShouldMatch minimum_should_match = 11;

optional Operator operator = 13;
optional Operator operator = 12;

// Number of beginning characters left unchanged for fuzzy matching.
optional int32 prefix_length = 14;
optional int32 prefix_length = 13;

// Text, number, Boolean value or date you wish to find in the provided field.
string query = 15;
string query = 14;

// Maximum number of positions allowed between matching tokens.
optional int32 slop = 16;
optional int32 slop = 15;

// Determines how scores for each per-term blended query and scores across groups are combined.
optional float tie_breaker = 17;
optional float tie_breaker = 16;

optional TextQueryType type = 18;
optional TextQueryType type = 17;

optional ZeroTermsQuery zero_terms_query = 19;
optional ZeroTermsQuery zero_terms_query = 18;
}
message MultiTermLookup {
// The path to a field or an array of paths. Some APIs support wildcards in the path, which allows you to select multiple fields.
Expand Down Expand Up @@ -4869,20 +4864,6 @@ message PhraseSuggester {

optional int32 token_limit = 16;
}
message PinnedDoc {
// The unique identifier for a resource.
string x_id = 1;

string x_index = 2;
}
message PinnedQuery {
// Floating point number used to decrease or increase the relevance scores of the query. Boost values are relative to the default value of 1.0. A boost value between 0 and 1.0 decreases the relevance score. A value greater than 1.0 increases the relevance score.
optional float boost = 1;

optional string x_name = 2;

QueryContainer organic = 3;
}
message PipelineAggregationBase {
// The custom metadata attached to a resource.
optional ObjectMap meta = 1;
Expand Down Expand Up @@ -5025,41 +5006,40 @@ message QueryContainer {
NeuralQuery neural = 30;
ParentIdQuery parent_id = 31;
PercolateQuery percolate = 32;
PinnedQuery pinned = 33;
// Returns documents that contain a specific prefix in a provided field.
PrefixQuery prefix = 34;
QueryStringQuery query_string = 35;
PrefixQuery prefix = 33;
QueryStringQuery query_string = 34;
// Returns documents that contain terms within a provided range.
RangeQuery range = 36;
RankFeatureQuery rank_feature = 37;
RangeQuery range = 35;
RankFeatureQuery rank_feature = 36;
// Returns documents that contain terms matching a regular expression.
RegexpQuery regexp = 38;
ScriptQuery script = 39;
ScriptScoreQuery script_score = 40;
SimpleQueryStringQuery simple_query_string = 41;
SpanContainingQuery span_containing = 42;
SpanFieldMaskingQuery field_masking_span = 43;
SpanFirstQuery span_first = 44;
SpanMultiTermQuery span_multi = 45;
SpanNearQuery span_near = 46;
SpanNotQuery span_not = 47;
SpanOrQuery span_or = 48;
RegexpQuery regexp = 37;
ScriptQuery script = 38;
ScriptScoreQuery script_score = 39;
SimpleQueryStringQuery simple_query_string = 40;
SpanContainingQuery span_containing = 41;
SpanFieldMaskingQuery field_masking_span = 42;
SpanFirstQuery span_first = 43;
SpanMultiTermQuery span_multi = 44;
SpanNearQuery span_near = 45;
SpanNotQuery span_not = 46;
SpanOrQuery span_or = 47;
// Matches spans containing a term.
SpanTermQuery span_term = 49;
SpanWithinQuery span_within = 50;
SpanTermQuery span_term = 48;
SpanWithinQuery span_within = 49;
// Return documents using a template query contains placeholders that are resolved by search request processors during query execution.
ObjectMap template = 51;
ObjectMap template = 50;
// Returns documents that contain an exact term in a provided field. To return a document, the query term must exactly match the queried field's value, including white space and capitalization.
TermQuery term = 52;
TermQuery term = 51;
// Returns documents that contain one or more exact terms in a provided field.
TermsQuery terms = 53;
TermsQuery terms = 52;
// Returns documents that contain a minimum number of exact terms in a provided field. To return a document, a required number of terms must exactly match the field values, including white space and capitalization.
TermsSetQuery terms_set = 54;
TypeQuery type = 55;
TermsSetQuery terms_set = 53;
TypeQuery type = 54;
// Returns documents that contain terms matching a wildcard pattern.
WildcardQuery wildcard = 56;
WrapperQuery wrapper = 57;
XyShapeQuery xy_shape = 58;
WildcardQuery wildcard = 55;
WrapperQuery wrapper = 56;
XyShapeQuery xy_shape = 57;
}
}
message QueryProfile {
Expand Down