Skip to content

Commit 9a86e4f

Browse files
authored
Merge pull request #64 from lucy66hw/auto-pr-branch
[Automated PR]: Update generated protobuf schema (OpenSearch: 3.4.0, spec commit: 8978c523e39389afa894ea3cc6fe7a19c624985e)
2 parents 8507245 + 690de4d commit 9a86e4f

1 file changed

Lines changed: 47 additions & 67 deletions

File tree

protos/generated/models/aggregated_models.proto

Lines changed: 47 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -2225,17 +2225,14 @@ message FunctionScoreContainer {
22252225

22262226
optional float weight = 2;
22272227

2228-
optional DecayFunction exp = 3;
2229-
2230-
optional DecayFunction gauss = 4;
2231-
2232-
optional DecayFunction linear = 5;
2233-
2234-
optional FieldValueFactorScoreFunction field_value_factor = 6;
2235-
2236-
optional RandomScoreFunction random_score = 7;
2237-
2238-
optional ScriptScoreFunction script_score = 8;
2228+
oneof function_score_container {
2229+
DecayFunction exp = 3;
2230+
DecayFunction gauss = 4;
2231+
DecayFunction linear = 5;
2232+
FieldValueFactorScoreFunction field_value_factor = 6;
2233+
RandomScoreFunction random_score = 7;
2234+
ScriptScoreFunction script_score = 8;
2235+
}
22392236
}
22402237
enum FunctionScoreMode {
22412238
FUNCTION_SCORE_MODE_UNSPECIFIED = 0;
@@ -4311,43 +4308,41 @@ message MultiMatchQuery {
43114308
// If `true`, match phrase queries are automatically created for multi-term synonyms.
43124309
optional bool auto_generate_synonyms_phrase_query = 4;
43134310

4314-
optional float cutoff_frequency = 5;
4315-
43164311
// 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.
4317-
repeated string fields = 6;
4312+
repeated string fields = 5;
43184313

4319-
optional Fuzziness fuzziness = 7;
4314+
optional Fuzziness fuzziness = 6;
43204315

4321-
optional MultiTermQueryRewrite fuzzy_rewrite = 8;
4316+
optional MultiTermQueryRewrite fuzzy_rewrite = 7;
43224317

43234318
// 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.
4324-
optional bool fuzzy_transpositions = 9;
4319+
optional bool fuzzy_transpositions = 8;
43254320

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

43294324
// Maximum number of terms to which the query will expand.
4330-
optional int32 max_expansions = 11;
4325+
optional int32 max_expansions = 10;
43314326

4332-
optional MinimumShouldMatch minimum_should_match = 12;
4327+
optional MinimumShouldMatch minimum_should_match = 11;
43334328

4334-
optional Operator operator = 13;
4329+
optional Operator operator = 12;
43354330

43364331
// Number of beginning characters left unchanged for fuzzy matching.
4337-
optional int32 prefix_length = 14;
4332+
optional int32 prefix_length = 13;
43384333

43394334
// Text, number, Boolean value or date you wish to find in the provided field.
4340-
string query = 15;
4335+
string query = 14;
43414336

43424337
// Maximum number of positions allowed between matching tokens.
4343-
optional int32 slop = 16;
4338+
optional int32 slop = 15;
43444339

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

4348-
optional TextQueryType type = 18;
4343+
optional TextQueryType type = 17;
43494344

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

48704865
optional int32 token_limit = 16;
48714866
}
4872-
message PinnedDoc {
4873-
// The unique identifier for a resource.
4874-
string x_id = 1;
4875-
4876-
string x_index = 2;
4877-
}
4878-
message PinnedQuery {
4879-
// 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.
4880-
optional float boost = 1;
4881-
4882-
optional string x_name = 2;
4883-
4884-
QueryContainer organic = 3;
4885-
}
48864867
message PipelineAggregationBase {
48874868
// The custom metadata attached to a resource.
48884869
optional ObjectMap meta = 1;
@@ -5025,41 +5006,40 @@ message QueryContainer {
50255006
NeuralQuery neural = 30;
50265007
ParentIdQuery parent_id = 31;
50275008
PercolateQuery percolate = 32;
5028-
PinnedQuery pinned = 33;
50295009
// Returns documents that contain a specific prefix in a provided field.
5030-
PrefixQuery prefix = 34;
5031-
QueryStringQuery query_string = 35;
5010+
PrefixQuery prefix = 33;
5011+
QueryStringQuery query_string = 34;
50325012
// Returns documents that contain terms within a provided range.
5033-
RangeQuery range = 36;
5034-
RankFeatureQuery rank_feature = 37;
5013+
RangeQuery range = 35;
5014+
RankFeatureQuery rank_feature = 36;
50355015
// Returns documents that contain terms matching a regular expression.
5036-
RegexpQuery regexp = 38;
5037-
ScriptQuery script = 39;
5038-
ScriptScoreQuery script_score = 40;
5039-
SimpleQueryStringQuery simple_query_string = 41;
5040-
SpanContainingQuery span_containing = 42;
5041-
SpanFieldMaskingQuery field_masking_span = 43;
5042-
SpanFirstQuery span_first = 44;
5043-
SpanMultiTermQuery span_multi = 45;
5044-
SpanNearQuery span_near = 46;
5045-
SpanNotQuery span_not = 47;
5046-
SpanOrQuery span_or = 48;
5016+
RegexpQuery regexp = 37;
5017+
ScriptQuery script = 38;
5018+
ScriptScoreQuery script_score = 39;
5019+
SimpleQueryStringQuery simple_query_string = 40;
5020+
SpanContainingQuery span_containing = 41;
5021+
SpanFieldMaskingQuery field_masking_span = 42;
5022+
SpanFirstQuery span_first = 43;
5023+
SpanMultiTermQuery span_multi = 44;
5024+
SpanNearQuery span_near = 45;
5025+
SpanNotQuery span_not = 46;
5026+
SpanOrQuery span_or = 47;
50475027
// Matches spans containing a term.
5048-
SpanTermQuery span_term = 49;
5049-
SpanWithinQuery span_within = 50;
5028+
SpanTermQuery span_term = 48;
5029+
SpanWithinQuery span_within = 49;
50505030
// Return documents using a template query contains placeholders that are resolved by search request processors during query execution.
5051-
ObjectMap template = 51;
5031+
ObjectMap template = 50;
50525032
// 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.
5053-
TermQuery term = 52;
5033+
TermQuery term = 51;
50545034
// Returns documents that contain one or more exact terms in a provided field.
5055-
TermsQuery terms = 53;
5035+
TermsQuery terms = 52;
50565036
// 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.
5057-
TermsSetQuery terms_set = 54;
5058-
TypeQuery type = 55;
5037+
TermsSetQuery terms_set = 53;
5038+
TypeQuery type = 54;
50595039
// Returns documents that contain terms matching a wildcard pattern.
5060-
WildcardQuery wildcard = 56;
5061-
WrapperQuery wrapper = 57;
5062-
XyShapeQuery xy_shape = 58;
5040+
WildcardQuery wildcard = 55;
5041+
WrapperQuery wrapper = 56;
5042+
XyShapeQuery xy_shape = 57;
50635043
}
50645044
}
50655045
message QueryProfile {

0 commit comments

Comments
 (0)