You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Backward compatible change for implemented query types RegexpQuery, WildcardQuery, PrefixQuery, MultiMatchQuery, MatchQuery, MatchBoolPrefixQuery, FuzzyQuery and ErrorCause (opensearch-project#325)
* Backward Incompatible change for implemented query types RegexpQuery, WildcardQuery, PrefixQuery, MultiMatchQuery, MatchQuery, MatchBoolPrefixQuery, FuzzyQuery and ErrorCause
Signed-off-by: xil <fridalu66@gmail.com>
* change suffix from enum to deprecated
Signed-off-by: xil <fridalu66@gmail.com>
---------
Signed-off-by: xil <fridalu66@gmail.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,8 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
10
10
- Preprocessing - Support x-protobuf-required to enforce required protobuf field and convert oneOf properties pattern to min/max Properties = 1 ([#318](https://github.com/opensearch-project/opensearch-protobufs/pull/318))
11
11
12
12
### Changed
13
-
- Backward Incompatible change for unimplemented query types `ScriptScoreQuery`, `SimpleQueryStringQuery`, `DisMaxQuery`, `IntervalsQuery`, `QueryStringQuery` and `TermsAggregation`
13
+
- Backward Incompatible change for unimplemented query types `ScriptScoreQuery`, `SimpleQueryStringQuery`, `DisMaxQuery`, `IntervalsQuery`, `QueryStringQuery` and `TermsAggregation` ([#324](https://github.com/opensearch-project/opensearch-protobufs/pull/324))
14
+
- Backward Incompatible change for implemented query types `RegexpQuery`, `WildcardQuery`, `PrefixQuery`, `MultiMatchQuery`, `MatchQuery`, `MatchBoolPrefixQuery`, `FuzzyQuery` and `ErrorCause` ([#325](https://github.com/opensearch-project/opensearch-protobufs/pull/325))
Copy file name to clipboardExpand all lines: protos/schemas/common.proto
+23-15Lines changed: 23 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -193,13 +193,6 @@ message StringArray{
193
193
repeatedstringstring_array=1;
194
194
}
195
195
196
-
messageStringOrStringArray {
197
-
oneofstring_or_string_array{
198
-
stringstring=1;
199
-
StringArraystring_array=2;
200
-
}
201
-
}
202
-
203
196
messageSourceConfig {
204
197
205
198
oneofsource_config{
@@ -240,7 +233,7 @@ message ErrorCause {
240
233
optionalObjectMapmetadata=7;
241
234
242
235
// [optional]
243
-
map<string, StringOrStringArray> header=8;
236
+
map<string, StringArray> header=8;
244
237
}
245
238
messageShardStatistics {
246
239
// [required] Number of shards that failed to execute the request. Note that shards that are not allocated will be considered neither successful nor failed. Having failed+successful less than total is thus an indication that some of the shards were not allocated.
@@ -1131,14 +1124,16 @@ message WildcardQuery {
1131
1124
// [optional] Allows case insensitive matching of the pattern with the indexed field values when set to `true`. Default is `false` which means the case sensitivity of matching depends on the underlying field's mapping.
// [optional] Wildcard pattern for terms you wish to find in the provided field. Required, when wildcard is not set.
1137
1130
optionalstringvalue=6;
1138
1131
1139
1132
// [optional] Wildcard pattern for terms you wish to find in the provided field. Required, when value is not set.
1140
1133
optionalstringwildcard=7;
1141
1134
1135
+
optionalstringrewrite=8;
1136
+
1142
1137
}
1143
1138
1144
1139
enumMultiTermQueryRewrite {
@@ -1249,7 +1244,7 @@ message MatchQuery {
1249
1244
// [optional] The number of character edits (insertions, deletions, substitutions, or transpositions) that it takes to change one word to another when determining whether a term matched a value. For example, the distance between wined and wind is 1. Valid values are non-negative integers or AUTO.
1250
1245
optionalFuzzinessfuzziness=7;
1251
1246
// [optional] Determines how OpenSearch rewrites the query. Default is constant_score.
// [optional] Setting fuzzy_transpositions to true (default) adds swaps of adjacent characters to the insert, delete, and substitute operations of the fuzziness option. For example, the distance between wind and wnid is 1 if fuzzy_transpositions is true (swap “n” and “i”) and 2 if it is false (delete “n”, insert “n”). If fuzzy_transpositions is false, rewind and wnid have the same distance (2) from wind, despite the more human-centric opinion that wnid is an obvious typo. The default(true) is a good choice for most use cases.
1254
1249
optionalboolfuzzy_transpositions=9;
1255
1250
// [optional] Setting lenient to true ignores data type mismatches between the query and the document field. For example, a query string of "8.2" could match a field of type float. Default is false.
@@ -1264,6 +1259,8 @@ message MatchQuery {
1264
1259
optionalint32prefix_length=14;
1265
1260
// [optional] In some cases, the analyzer removes all terms from a query string. For example, the stop analyzer removes all terms from the string an but this. In those cases, zero_terms_query specifies whether to match no documents (none) or all documents (all). Valid values are none and all. Default is none.
1266
1261
optionalZeroTermsQueryzero_terms_query=15;
1262
+
// [optional] Determines how OpenSearch rewrites the query. Default is constant_score.
1263
+
optionalstringfuzzy_rewrite=16;
1267
1264
}
1268
1265
1269
1266
messageBoolQuery {
@@ -1593,9 +1590,11 @@ message PrefixQuery {
1593
1590
// [optional] Query name for query tagging.
1594
1591
optionalstringx_name=4;
1595
1592
// [optional] Determines how OpenSearch rewrites the query. Default is constant_score.
// [optional] Allows ASCII case insensitive matching of the value with the indexed field values when set to `true`. Default is `false` which means the case sensitivity of matching depends on the underlying field's mapping.
1598
1595
optionalboolcase_insensitive=6;
1596
+
// [optional] Determines how OpenSearch rewrites the query. Default is constant_score.
1597
+
optionalstringrewrite=7;
1599
1598
}
1600
1599
1601
1600
enumTermsQueryValueType {
@@ -1675,7 +1674,10 @@ message RegexpQuery {
1675
1674
optionalint32max_determinized_states=7;
1676
1675
1677
1676
// [optional] Determines how OpenSearch rewrites and scores multi-term queries. Valid values are constant_score, scoring_boolean, constant_score_boolean, top_terms_N, top_terms_boost_N, and top_terms_blended_freqs_N. Default is constant_score.
// [optional] Determines how OpenSearch rewrites and scores multi-term queries. Valid values are constant_score, scoring_boolean, constant_score_boolean, top_terms_N, top_terms_boost_N, and top_terms_blended_freqs_N. Default is constant_score.
1680
+
optionalstringrewrite=9;
1679
1681
}
1680
1682
1681
1683
messageTermQuery {
@@ -1932,11 +1934,13 @@ message FuzzyQuery {
1932
1934
// [optional] The number of leading characters that are not considered in fuzziness. Default is 0.
1933
1935
optionalint32prefix_length=6;
1934
1936
// [optional] Determines how OpenSearch rewrites the query. Default is constant_score.
// [optional] Specifies whether to allow transpositions of two adjacent characters (ab to ba) as edits. Default is true.
1937
1939
optionalbooltranspositions=8;
1938
1940
// [optional] The number of character edits (insert, delete, substitute) needed to change one word to another when determining whether a term matched a value.
1939
1941
optionalFuzzinessfuzziness=9;
1942
+
// [optional] Determines how OpenSearch rewrites the query. Default is constant_score.
// [optional] The number of character edits (insert, delete, substitute) that it takes to change one word to another when determining whether a term matched a value. For example, the distance between wined and wind is 1. The default, AUTO, chooses a value based on the length of each term and is a good choice for most use cases.
2036
2040
optionalFuzzinessfuzziness=6;
2037
2041
// [optional] Determines how OpenSearch rewrites the query. Default is constant_score.
// [optional] Setting fuzzy_transpositions to true (default) adds swaps of adjacent characters to the insert, delete, and substitute operations of the fuzziness option. For example, the distance between wind and wnid is 1 if fuzzy_transpositions is true (swap “n” and “i”) and 2 if it is false (delete “n”, insert “n”). If fuzzy_transpositions is false, rewind and wnid have the same distance (2) from wind, despite the more human-centric opinion that wnid is an obvious typo. The default(true) is a good choice for most use cases.
2040
2044
optionalboolfuzzy_transpositions=8;
2041
2045
// [optional] The maximum number of terms to which the query can expand. Fuzzy queries “expand to” a number of matching terms that are within the distance specified in fuzziness. Then OpenSearch tries to match those terms. Default is 50.
// [optional] The number of leading characters that are not considered in fuzziness. Default is 0.
2048
2052
optionalint32prefix_length=12;
2053
+
// [optional] Determines how OpenSearch rewrites the query. Default is constant_score.
2054
+
optionalstringfuzzy_rewrite=13;
2049
2055
}
2050
2056
2051
2057
messageMatchNoneQuery {
@@ -2122,7 +2128,7 @@ message MultiMatchQuery {
2122
2128
repeatedstringfields=6;
2123
2129
2124
2130
// [optional] Determines how OpenSearch rewrites the query. Valid values are constant_score, scoring_boolean, constant_score_boolean, top_terms_N, top_terms_boost_N, and top_terms_blended_freqs_N. If the fuzziness parameter is not 0, the query uses a fuzzy_rewrite method of top_terms_blended_freqs_${max_expansions} by default. Default is constant_score.
// [optional] The number of character edits (insert, delete, substitute) that it takes to change one word to another when determining whether a term matched a value.
2128
2134
optionalFuzzinessfuzziness=8;
@@ -2157,6 +2163,8 @@ message MultiMatchQuery {
2157
2163
2158
2164
// [optional] In some cases, the analyzer removes all terms from a query string. For example, the stop analyzer removes all terms from the string an but this. In those cases, zero_terms_query specifies whether to match no documents (none) or all documents (all). Valid values are none and all. Default is none.
2159
2165
optionalZeroTermsQueryzero_terms_query=18;
2166
+
// [optional] Determines how OpenSearch rewrites the query. Valid values are constant_score, scoring_boolean, constant_score_boolean, top_terms_N, top_terms_boost_N, and top_terms_blended_freqs_N. If the fuzziness parameter is not 0, the query uses a fuzzy_rewrite method of top_terms_blended_freqs_${max_expansions} by default. Default is constant_score.
0 commit comments