-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[GRPC] Adapt transport-grpc to use opensearch-protobufs 0.13.0 #19007
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GRPC] Adapt transport-grpc to use opensearch-protobufs 0.13.0 #19007
Conversation
…-grpc module compatibility - Upgrade protobufs dependency from 0.6.0 to 0.7.0 in transport-grpc module - Update all protobuf utility classes to handle API changes in 0.7.0 - Fix enum structure changes (simple enums to message with oneof fields) - Update field name changes (setIndex -> setUnderscoreIndex, etc.) - Handle new OperationContainer pattern for bulk operations - Update all corresponding unit and integration tests - Add new SHA for protobufs-0.7.0.jar and remove old 0.6.0 SHA Signed-off-by: sakrah <[email protected]>
ac45ee6 to
6a30ba5
Compare
|
❌ Gradle check result for 6a30ba5: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
6a30ba5 to
765acec
Compare
|
❌ Gradle check result for 765acec: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
765acec to
dfad397
Compare
|
❌ Gradle check result for dfad397: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
dfad397 to
7bb83ab
Compare
|
❌ Gradle check result for 7bb83ab: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Karen Xu <[email protected]>
7bb83ab to
daa3789
Compare
|
❌ Gradle check result for daa3789: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Will retry the gradle check flaky tests (which are unrelated to this PR) once #19003 is merged, since it will require a new merge commit regardless |
Signed-off-by: Karen X <[email protected]>
Signed-off-by: sakrah <[email protected]>
Signed-off-by: sakrah <[email protected]>
...grpc/src/main/java/org/opensearch/transport/grpc/proto/request/common/RefreshProtoUtils.java
Outdated
Show resolved
Hide resolved
...va/org/opensearch/transport/grpc/proto/request/document/bulk/ActiveShardCountProtoUtils.java
Show resolved
Hide resolved
...in/java/org/opensearch/transport/grpc/proto/request/search/SearchAfterBuilderProtoUtils.java
Show resolved
Hide resolved
...rg/opensearch/transport/grpc/proto/request/search/query/TermsQueryBuilderProtoConverter.java
Outdated
Show resolved
Hide resolved
...rg/opensearch/transport/grpc/proto/request/search/query/TermsQueryBuilderProtoConverter.java
Outdated
Show resolved
Hide resolved
...va/org/opensearch/transport/grpc/proto/request/search/query/TermsQueryBuilderProtoUtils.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/opensearch/transport/grpc/proto/response/common/FieldValueProtoUtils.java
Outdated
Show resolved
Hide resolved
...java/org/opensearch/transport/grpc/proto/response/document/common/VersionTypeProtoUtils.java
Outdated
Show resolved
Hide resolved
|
❌ Gradle check result for 89235c3: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: sakrah <[email protected]>
.../java/org/opensearch/transport/grpc/proto/response/document/bulk/BulkResponseProtoUtils.java
Show resolved
Hide resolved
...java/org/opensearch/transport/grpc/proto/response/document/common/VersionTypeProtoUtils.java
Show resolved
Hide resolved
|
One general nit pick I have is the addition of "unspecified" or "not recognized" cases. It seems like most all of the fields with these cases are optional and we will need to check for existence anyways making these redundant. |
Do you mean for enums? Adding an |
Signed-off-by: Karen X <[email protected]>
Signed-off-by: Karen Xu <[email protected]>
|
❌ Gradle check result for 00059c1: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Karen X <[email protected]>
|
❌ Gradle check result for 78acf09: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Karen Xu <[email protected]>
Signed-off-by: karenx <[email protected]>
1989745 to
ae21a00
Compare
…earch-project#19007) * Upgrade opensearch-protobufs dependency to 0.7.0 and update transport-grpc module compatibility - Upgrade protobufs dependency from 0.6.0 to 0.7.0 in transport-grpc module - Update all protobuf utility classes to handle API changes in 0.7.0 - Fix enum structure changes (simple enums to message with oneof fields) - Update field name changes (setIndex -> setUnderscoreIndex, etc.) - Handle new OperationContainer pattern for bulk operations - Update all corresponding unit and integration tests - Add new SHA for protobufs-0.7.0.jar and remove old 0.6.0 SHA Signed-off-by: sakrah <[email protected]> * Use 0.8.0 protos and fix transport-grpc compilation errors Signed-off-by: Karen Xu <[email protected]> * Add unit tests to improve transport-grpc module coverage Signed-off-by: sakrah <[email protected]> * Improve test coverage for search query utilities Signed-off-by: sakrah <[email protected]> * Improve unit test coverage for search query utilities Signed-off-by: sakrah <[email protected]> * transport-grpc: update to opensearch-protobufs 0.9.0 and improve FieldValue handling Signed-off-by: sakrah <[email protected]> * Update transport-grpc to opensearch-protobufs 0.10.0-SNAPSHOT Signed-off-by: sakrah <[email protected]> * use 0.10.0 Signed-off-by: Karen Xu <[email protected]> * remove map and refactor fieldvalueprotoutils.fromproto fix InnerHitBuilderProtoUtils tests Signed-off-by: Karen Xu <[email protected]> * forgot to commit spotlessApply changes Signed-off-by: Karen Xu <[email protected]> * update to 0.12.0 protos Signed-off-by: Karen Xu <[email protected]> * fix compilation Signed-off-by: Karen Xu <[email protected]> * use 0.13.0 Signed-off-by: karenx <[email protected]> --------- Signed-off-by: sakrah <[email protected]> Signed-off-by: Karen Xu <[email protected]> Signed-off-by: Karen X <[email protected]> Signed-off-by: karenx <[email protected]> Co-authored-by: sakrah <[email protected]> Co-authored-by: karenx <[email protected]>
…earch-project#19007) * Upgrade opensearch-protobufs dependency to 0.7.0 and update transport-grpc module compatibility - Upgrade protobufs dependency from 0.6.0 to 0.7.0 in transport-grpc module - Update all protobuf utility classes to handle API changes in 0.7.0 - Fix enum structure changes (simple enums to message with oneof fields) - Update field name changes (setIndex -> setUnderscoreIndex, etc.) - Handle new OperationContainer pattern for bulk operations - Update all corresponding unit and integration tests - Add new SHA for protobufs-0.7.0.jar and remove old 0.6.0 SHA Signed-off-by: sakrah <[email protected]> * Use 0.8.0 protos and fix transport-grpc compilation errors Signed-off-by: Karen Xu <[email protected]> * Add unit tests to improve transport-grpc module coverage Signed-off-by: sakrah <[email protected]> * Improve test coverage for search query utilities Signed-off-by: sakrah <[email protected]> * Improve unit test coverage for search query utilities Signed-off-by: sakrah <[email protected]> * transport-grpc: update to opensearch-protobufs 0.9.0 and improve FieldValue handling Signed-off-by: sakrah <[email protected]> * Update transport-grpc to opensearch-protobufs 0.10.0-SNAPSHOT Signed-off-by: sakrah <[email protected]> * use 0.10.0 Signed-off-by: Karen Xu <[email protected]> * remove map and refactor fieldvalueprotoutils.fromproto fix InnerHitBuilderProtoUtils tests Signed-off-by: Karen Xu <[email protected]> * forgot to commit spotlessApply changes Signed-off-by: Karen Xu <[email protected]> * update to 0.12.0 protos Signed-off-by: Karen Xu <[email protected]> * fix compilation Signed-off-by: Karen Xu <[email protected]> * use 0.13.0 Signed-off-by: karenx <[email protected]> --------- Signed-off-by: sakrah <[email protected]> Signed-off-by: Karen Xu <[email protected]> Signed-off-by: Karen X <[email protected]> Signed-off-by: karenx <[email protected]> Co-authored-by: sakrah <[email protected]> Co-authored-by: karenx <[email protected]> Signed-off-by: Ankit Jain <[email protected]>
…earch-project#19007) * Upgrade opensearch-protobufs dependency to 0.7.0 and update transport-grpc module compatibility - Upgrade protobufs dependency from 0.6.0 to 0.7.0 in transport-grpc module - Update all protobuf utility classes to handle API changes in 0.7.0 - Fix enum structure changes (simple enums to message with oneof fields) - Update field name changes (setIndex -> setUnderscoreIndex, etc.) - Handle new OperationContainer pattern for bulk operations - Update all corresponding unit and integration tests - Add new SHA for protobufs-0.7.0.jar and remove old 0.6.0 SHA Signed-off-by: sakrah <[email protected]> * Use 0.8.0 protos and fix transport-grpc compilation errors Signed-off-by: Karen Xu <[email protected]> * Add unit tests to improve transport-grpc module coverage Signed-off-by: sakrah <[email protected]> * Improve test coverage for search query utilities Signed-off-by: sakrah <[email protected]> * Improve unit test coverage for search query utilities Signed-off-by: sakrah <[email protected]> * transport-grpc: update to opensearch-protobufs 0.9.0 and improve FieldValue handling Signed-off-by: sakrah <[email protected]> * Update transport-grpc to opensearch-protobufs 0.10.0-SNAPSHOT Signed-off-by: sakrah <[email protected]> * use 0.10.0 Signed-off-by: Karen Xu <[email protected]> * remove map and refactor fieldvalueprotoutils.fromproto fix InnerHitBuilderProtoUtils tests Signed-off-by: Karen Xu <[email protected]> * forgot to commit spotlessApply changes Signed-off-by: Karen Xu <[email protected]> * update to 0.12.0 protos Signed-off-by: Karen Xu <[email protected]> * fix compilation Signed-off-by: Karen Xu <[email protected]> * use 0.13.0 Signed-off-by: karenx <[email protected]> --------- Signed-off-by: sakrah <[email protected]> Signed-off-by: Karen Xu <[email protected]> Signed-off-by: Karen X <[email protected]> Signed-off-by: karenx <[email protected]> Co-authored-by: sakrah <[email protected]> Co-authored-by: karenx <[email protected]> Signed-off-by: Ankit Jain <[email protected]>
…earch-project#19007) * Upgrade opensearch-protobufs dependency to 0.7.0 and update transport-grpc module compatibility - Upgrade protobufs dependency from 0.6.0 to 0.7.0 in transport-grpc module - Update all protobuf utility classes to handle API changes in 0.7.0 - Fix enum structure changes (simple enums to message with oneof fields) - Update field name changes (setIndex -> setUnderscoreIndex, etc.) - Handle new OperationContainer pattern for bulk operations - Update all corresponding unit and integration tests - Add new SHA for protobufs-0.7.0.jar and remove old 0.6.0 SHA Signed-off-by: sakrah <[email protected]> * Use 0.8.0 protos and fix transport-grpc compilation errors Signed-off-by: Karen Xu <[email protected]> * Add unit tests to improve transport-grpc module coverage Signed-off-by: sakrah <[email protected]> * Improve test coverage for search query utilities Signed-off-by: sakrah <[email protected]> * Improve unit test coverage for search query utilities Signed-off-by: sakrah <[email protected]> * transport-grpc: update to opensearch-protobufs 0.9.0 and improve FieldValue handling Signed-off-by: sakrah <[email protected]> * Update transport-grpc to opensearch-protobufs 0.10.0-SNAPSHOT Signed-off-by: sakrah <[email protected]> * use 0.10.0 Signed-off-by: Karen Xu <[email protected]> * remove map and refactor fieldvalueprotoutils.fromproto fix InnerHitBuilderProtoUtils tests Signed-off-by: Karen Xu <[email protected]> * forgot to commit spotlessApply changes Signed-off-by: Karen Xu <[email protected]> * update to 0.12.0 protos Signed-off-by: Karen Xu <[email protected]> * fix compilation Signed-off-by: Karen Xu <[email protected]> * use 0.13.0 Signed-off-by: karenx <[email protected]> --------- Signed-off-by: sakrah <[email protected]> Signed-off-by: Karen Xu <[email protected]> Signed-off-by: Karen X <[email protected]> Signed-off-by: karenx <[email protected]> Co-authored-by: sakrah <[email protected]> Co-authored-by: karenx <[email protected]>
…earch-project#19007) * Upgrade opensearch-protobufs dependency to 0.7.0 and update transport-grpc module compatibility - Upgrade protobufs dependency from 0.6.0 to 0.7.0 in transport-grpc module - Update all protobuf utility classes to handle API changes in 0.7.0 - Fix enum structure changes (simple enums to message with oneof fields) - Update field name changes (setIndex -> setUnderscoreIndex, etc.) - Handle new OperationContainer pattern for bulk operations - Update all corresponding unit and integration tests - Add new SHA for protobufs-0.7.0.jar and remove old 0.6.0 SHA Signed-off-by: sakrah <[email protected]> * Use 0.8.0 protos and fix transport-grpc compilation errors Signed-off-by: Karen Xu <[email protected]> * Add unit tests to improve transport-grpc module coverage Signed-off-by: sakrah <[email protected]> * Improve test coverage for search query utilities Signed-off-by: sakrah <[email protected]> * Improve unit test coverage for search query utilities Signed-off-by: sakrah <[email protected]> * transport-grpc: update to opensearch-protobufs 0.9.0 and improve FieldValue handling Signed-off-by: sakrah <[email protected]> * Update transport-grpc to opensearch-protobufs 0.10.0-SNAPSHOT Signed-off-by: sakrah <[email protected]> * use 0.10.0 Signed-off-by: Karen Xu <[email protected]> * remove map and refactor fieldvalueprotoutils.fromproto fix InnerHitBuilderProtoUtils tests Signed-off-by: Karen Xu <[email protected]> * forgot to commit spotlessApply changes Signed-off-by: Karen Xu <[email protected]> * update to 0.12.0 protos Signed-off-by: Karen Xu <[email protected]> * fix compilation Signed-off-by: Karen Xu <[email protected]> * use 0.13.0 Signed-off-by: karenx <[email protected]> --------- Signed-off-by: sakrah <[email protected]> Signed-off-by: Karen Xu <[email protected]> Signed-off-by: Karen X <[email protected]> Signed-off-by: karenx <[email protected]> Co-authored-by: sakrah <[email protected]> Co-authored-by: karenx <[email protected]>
…earch-project#19007) * Upgrade opensearch-protobufs dependency to 0.7.0 and update transport-grpc module compatibility - Upgrade protobufs dependency from 0.6.0 to 0.7.0 in transport-grpc module - Update all protobuf utility classes to handle API changes in 0.7.0 - Fix enum structure changes (simple enums to message with oneof fields) - Update field name changes (setIndex -> setUnderscoreIndex, etc.) - Handle new OperationContainer pattern for bulk operations - Update all corresponding unit and integration tests - Add new SHA for protobufs-0.7.0.jar and remove old 0.6.0 SHA Signed-off-by: sakrah <[email protected]> * Use 0.8.0 protos and fix transport-grpc compilation errors Signed-off-by: Karen Xu <[email protected]> * Add unit tests to improve transport-grpc module coverage Signed-off-by: sakrah <[email protected]> * Improve test coverage for search query utilities Signed-off-by: sakrah <[email protected]> * Improve unit test coverage for search query utilities Signed-off-by: sakrah <[email protected]> * transport-grpc: update to opensearch-protobufs 0.9.0 and improve FieldValue handling Signed-off-by: sakrah <[email protected]> * Update transport-grpc to opensearch-protobufs 0.10.0-SNAPSHOT Signed-off-by: sakrah <[email protected]> * use 0.10.0 Signed-off-by: Karen Xu <[email protected]> * remove map and refactor fieldvalueprotoutils.fromproto fix InnerHitBuilderProtoUtils tests Signed-off-by: Karen Xu <[email protected]> * forgot to commit spotlessApply changes Signed-off-by: Karen Xu <[email protected]> * update to 0.12.0 protos Signed-off-by: Karen Xu <[email protected]> * fix compilation Signed-off-by: Karen Xu <[email protected]> * use 0.13.0 Signed-off-by: karenx <[email protected]> --------- Signed-off-by: sakrah <[email protected]> Signed-off-by: Karen Xu <[email protected]> Signed-off-by: Karen X <[email protected]> Signed-off-by: karenx <[email protected]> Co-authored-by: sakrah <[email protected]> Co-authored-by: karenx <[email protected]>
Description
This PR fixes all compilation errors in the transport-grpc module when upgrading opensearch-protobufs from 0.6.0 to 0.13.0.
Co-authored by:
Test Plan
Sample comparison of OpenSearch Request/Responses for HTTP and gRPC (before vs. after) -
Note: This is not comprehensive of all fields that had changes.
Sample Term Query
HTTP (JSON)
gRPC (Before - opensearch-protobufs 0.6.0)
{ "index": ["test-index"], "request_body": { "query": { "term": { "field": "category", "value": { "string_value": "books" }, "underscore_name": "my_term_query" } } } }gRPC (After - opensearch-protobufs 0.13.0)
{ "index": ["test-index"], "request_body": { "query": { "term": { "field": "category", "value": { "string": "books" }, "x_name": "my_term_query" } } } }Sample Terms Query
HTTP (JSON)
gRPC (Before - opensearch-protobufs 0.6.0)
{ "index": ["test-index"], "request_body": { "query": { "terms_query_field": { "terms_lookup_field_string_array_map": { "category": { "field_value_array": { "field_value_array": [ {"string_value": "books"}, {"string_value": "electronics"}, {"string_value": "clothing"} ] } } }, "underscore_name": "my_terms_query" } } } }gRPC (After - opensearch-protobufs 0.13.0)
{ "index": ["test-index"], "request_body": { "query": { "terms": { "terms": { "category": { "field_value_array": { "field_value_array": [ {"string": "books"}, {"string": "electronics"}, {"string": "clothing"} ] } } }, "x_name": "my_terms_query" } } } }Sample Bulk Request
HTTP (JSON)
gRPC (Before - opensearch-protobufs 0.6.0)
{ "request_body": [ { "index": { "id": "1", "index": "test-index" }, "doc": "eyJ0aXRsZSI6ICJOZXcgRG9jdW1lbnQiLCAicHJpY2UiOiAyOS45OSwgImFjdGl2ZSI6IHRydWV9" }, { "create": { "id": "2", "index": "test-index" }, "doc": "eyJ0aXRsZSI6ICJDcmVhdGVkIERvY3VtZW50IiwgInByaWNlIjogMTkuOTksICJhY3RpdmUiOiBmYWxzZX0=" }, { "update": { "id": "3", "index": "test-index" }, "doc": "eyJkb2MiOiB7InRpdGxlIjogIlVwZGF0ZWQgRG9jdW1lbnQiLCAicHJpY2UiOiAzOS45OX19", "detect_noop": true, "doc_as_upsert": false }, { "delete": { "id": "4", "index": "test-index" } } ] }gRPC (After - opensearch-protobufs 0.13.0)
{ "request_body": [ { "operation_container": { "index": { "x_id": "1", "x_index": "test-index" } }, "object": "eyJ0aXRsZSI6ICJOZXcgRG9jdW1lbnQiLCAicHJpY2UiOiAyOS45OSwgImFjdGl2ZSI6IHRydWV9" }, { "operation_container": { "create": { "x_id": "2", "x_index": "test-index" } }, "object": "eyJ0aXRsZSI6ICJDcmVhdGVkIERvY3VtZW50IiwgInByaWNlIjogMTkuOTksICJhY3RpdmUiOiBmYWxzZX0=" }, { "operation_container": { "update": { "x_id": "3", "x_index": "test-index" } }, "update_action": { "doc": "eyJkb2MiOiB7InRpdGxlIjogIlVwZGF0ZWQgRG9jdW1lbnQiLCAicHJpY2UiOiAzOS45OX19", "detect_noop": true, "doc_as_upsert": false } }, { "operation_container": { "delete": { "x_id": "4", "x_index": "test-index" } } } ] }Sample Bulk Response
HTTP (JSON)
{ "took": 15, "errors": false, "items": [ { "index": { "_index": "test-index", "_id": "1", "_version": 1, "result": "created", "_shards": {"total": 2, "successful": 1, "failed": 0}, "status": 201 } }, { "create": { "_index": "test-index", "_id": "2", "_version": 1, "result": "created", "_shards": {"total": 2, "successful": 1, "failed": 0}, "status": 201 } }, { "update": { "_index": "test-index", "_id": "3", "_version": 2, "result": "updated", "_shards": {"total": 2, "successful": 1, "failed": 0}, "status": 200 } }, { "delete": { "_index": "test-index", "_id": "4", "_version": 2, "result": "deleted", "_shards": {"total": 2, "successful": 1, "failed": 0}, "status": 200 } } ] }gRPC (Before - opensearch-protobufs 0.6.0)
{ "bulk_response_body": { "took": 15, "errors": false, "items": [ { "index": { "type": "_doc", "id": {"string": "1"}, "index": "test-index", "primary_term": 1, "result": "RESULT_CREATED", "seq_no": 0, "shards": {"total": 2, "successful": 1, "failed": 0}, "version": 1, "status": 201 } }, { "create": { "type": "_doc", "id": {"string": "2"}, "index": "test-index", "primary_term": 1, "result": "RESULT_CREATED", "seq_no": 1, "shards": {"total": 2, "successful": 1, "failed": 0}, "version": 1, "status": 201 } }, { "update": { "type": "_doc", "id": {"string": "3"}, "index": "test-index", "primary_term": 1, "result": "RESULT_UPDATED", "seq_no": 2, "shards": {"total": 2, "successful": 1, "failed": 0}, "version": 2, "status": 200 } }, { "delete": { "type": "_doc", "id": {"string": "4"}, "index": "test-index", "primary_term": 1, "result": "RESULT_DELETED", "seq_no": 3, "shards": {"total": 2, "successful": 1, "failed": 0}, "version": 2, "status": 200 } } ] } }gRPC (After - opensearch-protobufs 0.13.0)
{ "took": 15, "errors": false, "items": [ { "index": { "x_type": "_doc", "x_id": {"string": "1"}, "x_index": "test-index", "x_primary_term": 1, "result": "RESULT_CREATED", "x_seq_no": 0, "x_shards": {"total": 2, "successful": 1, "failed": 0}, "x_version": 1, "status": 201 } }, { "create": { "x_type": "_doc", "x_id": {"string": "2"}, "x_index": "test-index", "x_primary_term": 1, "result": "RESULT_CREATED", "x_seq_no": 1, "x_shards": {"total": 2, "successful": 1, "failed": 0}, "x_version": 1, "status": 201 } }, { "update": { "x_type": "_doc", "x_id": {"string": "3"}, "x_index": "test-index", "x_primary_term": 1, "result": "RESULT_UPDATED", "x_seq_no": 2, "x_shards": {"total": 2, "successful": 1, "failed": 0}, "x_version": 2, "status": 200 } }, { "delete": { "x_type": "_doc", "x_id": {"string": "4"}, "x_index": "test-index", "x_primary_term": 1, "result": "RESULT_DELETED", "x_seq_no": 3, "x_shards": {"total": 2, "successful": 1, "failed": 0}, "x_version": 2, "status": 200 } } ] }Sample Search Response
HTTP (JSON)
{ "took": 3, "timed_out": false, "hits": { "total": {"value": 2, "relation": "eq"}, "max_score": 1.0, "hits": [ { "_index": "test-index", "_id": "1", "_score": 1.0, "_source": {"title": "Document 1", "category": "books"} }, { "_index": "test-index", "_id": "2", "_score": 1.0, "_source": {"title": "Document 2", "category": "electronics"} } ] } }gRPC (Before - opensearch-protobufs 0.6.0)
{ "response_body": { "took": 3, "timed_out": false, "hits": { "total": { "total_hits": { "value": 2, "relation": "TOTAL_HITS_RELATION_EQ" } }, "max_score": {"float_value": 1.0}, "hits": [ { "index": "test-index", "id": "1", "score": {"float_value": 1.0}, "source": "eyJ0aXRsZSI6ICJEb2N1bWVudCAxIiwgImNhdGVnb3J5IjogImJvb2tzIn0=" }, { "index": "test-index", "id": "2", "score": {"float_value": 1.0}, "source": "eyJ0aXRsZSI6ICJEb2N1bWVudCAyIiwgImNhdGVnb3J5IjogImVsZWN0cm9uaWNzIn0=" } ] } } }gRPC (After - opensearch-protobufs 0.13.0)
{ "took": 3, "timed_out": false, "x_shards": { "total": 1, "successful": 1, "failed": 0 }, "hits": { "total": { "total_hits": { "value": 2, "relation": "TOTAL_HITS_RELATION_EQ" } }, "max_score": {"float": 1.0}, "hits": [ { "x_index": "test-index", "x_id": "1", "x_score": {"double": 1.0}, "x_source": "eyJ0aXRsZSI6ICJEb2N1bWVudCAxIiwgImNhdGVnb3J5IjogImJvb2tzIn0=" }, { "x_index": "test-index", "x_id": "2", "x_score": {"double": 1.0}, "x_source": "eyJ0aXRsZSI6ICJEb2N1bWVudCAyIiwgImNhdGVnb3J5IjogImVsZWN0cm9uaWNzIn0=" } ] } }Related Issues
#19020
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.