Skip to content

Commit 915c4ae

Browse files
committed
Manual remove BoostingQuery, DisMaxQuery, QueryStringQuery, SimpleQueryStringQuery, IntervalsQuery and ScriptScoreQuery
Signed-off-by: xil <fridalu66@gmail.com>
1 parent c85ac72 commit 915c4ae

3 files changed

Lines changed: 7 additions & 18 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1111
### Changed
1212

1313
### Removed
14+
- Manual remove `BoostingQuery`, `DisMaxQuery`, `QueryStringQuery`, `SimpleQueryStringQuery`, `IntervalsQuery` and `ScriptScoreQuery` ([#367](https://github.com/opensearch-project/opensearch-protobufs/pull/367))
1415

1516
### Fixed
1617

protos/schemas/common.proto

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,15 +1343,9 @@ message QueryContainer {
13431343
// A Boolean (bool) query can combine several query clauses into one advanced query. The clauses are combined with Boolean logic to find matching documents returned in the results.
13441344
BoolQuery bool = 1;
13451345

1346-
// A boosting query returns documents that match a positive query. Among those documents, the ones that also match the negative query are scored lower in relevance (their relevance score is multiplied by the negative boosting factor).
1347-
BoostingQuery boosting = 2;
1348-
13491346
// A constant_score query wraps a filter query and assigns all documents in the results a relevance score equal to the value of the boost parameter.
13501347
ConstantScoreQuery constant_score = 3;
13511348

1352-
// A disjunction max (dis_max) query returns any document that matches one or more query clauses. For documents that match multiple query clauses, the relevance score is set to the highest relevance score from all matching query clauses.
1353-
DisMaxQuery dis_max = 4;
1354-
13551349
// Use a function_score query if you need to alter the relevance scores of documents returned in the results. A function_score query defines a query and one or more functions that can be applied to all results or subsets of the results to recalculate their relevance scores.
13561350
FunctionScoreQuery function_score = 5;
13571351

@@ -1400,15 +1394,6 @@ message QueryContainer {
14001394
// A multi-match operation functions similarly to the match operation. You can use a multi_match query to search multiple fields.
14011395
MultiMatchQuery multi_match = 20;
14021396

1403-
// A query_string query parses the query string based on the query string syntax. It provides for creating powerful yet concise queries that can incorporate wildcards and search multiple fields.
1404-
QueryStringQuery query_string = 21;
1405-
1406-
// Use the simple_query_string type to specify multiple arguments delineated by regular expressions directly in the query string. Simple query string has a less strict syntax than query string because it discards any invalid portions of the string and does not return errors for invalid syntax.
1407-
SimpleQueryStringQuery simple_query_string = 22;
1408-
1409-
// Returns documents based on the order and proximity of matching terms.
1410-
IntervalsQuery intervals = 23;
1411-
14121397
// Knn query is to search for the k-nearest neighbors to a query point across an index of vectors. To determine the neighbors, you can specify the space (the distance function) you want to use to measure the distance between points.
14131398
KnnQuery knn = 24;
14141399

@@ -1418,9 +1403,6 @@ message QueryContainer {
14181403
// This is the inverse of the match_all query, which matches no documents.
14191404
MatchNoneQuery match_none = 26;
14201405

1421-
// Use a script_score query to customize the score calculation by using a script. For an expensive scoring function, you can use a script_score query to calculate the score only for the returned documents that have been filtered.
1422-
ScriptScoreQuery script_score = 27;
1423-
14241406
// The nested query acts as a wrapper for other queries to search nested fields. The nested field objects are searched as though they were indexed as separate documents. If an object matches the search, the nested query returns the parent document at the root level.
14251407
NestedQuery nested = 28;
14261408

tools/proto-convert/src/config/spec-filter.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ excluded_schemas:
1010
- Aggregate
1111
- Suggester
1212
- Suggest
13+
- BoostingQuery
14+
- DisMaxQuery
15+
- QueryStringQuery
16+
- SimpleQueryStringQuery
17+
- IntervalsQuery
18+
- ScriptScoreQuery
1319
- CommonTermsQuery
1420
- CombinedFieldsQuery
1521
- DistanceFeatureQuery

0 commit comments

Comments
 (0)