Skip to content

Commit c5cdc58

Browse files
lucy66hwkarenyrx
andauthored
Change indices_boost to single map and rename request_body to bulk_request_body (opensearch-project#257)
* Change `indices_boost` to single map and rename response_body to bulk_response_body Signed-off-by: xil <fridalu66@gmail.com> * Update CHANGELOG.md Signed-off-by: Karen X <karenxyr@gmail.com> --------- Signed-off-by: xil <fridalu66@gmail.com> Signed-off-by: Karen X <karenxyr@gmail.com> Co-authored-by: Karen X <karenxyr@gmail.com>
1 parent d22b687 commit c5cdc58

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

CHANGELOG.md

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

99
### Changed
1010
- Revert bulk response back to without error response ([#256](https://github.com/opensearch-project/opensearch-protobufs/pull/256))
11+
- Change `indices_boost` to single map and rename request_body to bulk_request_body ([#257](https://github.com/opensearch-project/opensearch-protobufs/pull/257))
1112
### Removed
1213

1314
### Fixed

protos/schemas/document.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ message BulkRequest {
4040
// [optional] The number of active shards that must be available before OpenSearch processes the request. Default is 1 (only the primary shard). Set to all or a positive integer. Values greater than 1 require replicas. For example, if you specify a value of 3, the index must have two replicas distributed across two additional nodes for the operation to succeed.
4141
optional WaitForActiveShards wait_for_active_shards = 11;
4242
// [required] The request body contains create, delete, index, and update actions and their associated source data
43-
repeated BulkRequestBody request_body = 12;
43+
repeated BulkRequestBody bulk_request_body = 12;
4444
// [optional] Global parameters
4545
optional GlobalParams global_params = 13;
4646
}

protos/schemas/search.proto

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@ message SearchRequest {
9090
optional GlobalParams global_params = 33;
9191
}
9292

93-
message FloatMap {
94-
map<string, float> float_map = 1;
95-
}
96-
9793
message SearchRequestBody {
9894
// [optional] In the optional aggs parameter, you can define any number of aggregations. Each aggregation is defined by its name and one of the types of aggregations that OpenSearch supports.
9995
// TODO not supported yet
@@ -118,7 +114,7 @@ message SearchRequestBody {
118114
optional TrackHits track_total_hits = 7;
119115

120116
// [optional] Values used to boost the score of specified indexes. Specify in the format of <index> : <boost-multiplier>
121-
repeated FloatMap indices_boost = 8;
117+
map<string, float> indices_boost = 8;
122118

123119
// [optional] The fields that OpenSearch should return using their docvalue forms. Specify a format to return results in a certain format, such as date and time.
124120
repeated FieldAndFormat docvalue_fields = 9;

0 commit comments

Comments
 (0)