OpenSearch icon indicating copy to clipboard operation
OpenSearch copied to clipboard

Introduce protobuf serialization for objects - FetchSearchResult, SearchHits, SearchHit

Open finnegancarroll opened this issue 6 months ago • 21 comments

Description

Extend existing native transport serialization by introducing protobuf definitions for the following classes: FetchSearchResult, SearchHits, SearchHit.

FetchSearchResultProtobuf, SearchHitsProtobuf, and SearchHitProtobuf wrap their respective classes overriding native serialization and writing/reading protobuf objects instead. Protobuf has the advantage of out of the box versioning/bwc, language agnostic service definitions, and speculative performance benefits in some areas. See this issue for additional details.

Having protobuf definitions for client facing objects could help enable gRPC work going forward as well.

Related Issues

#15308 #13697

Check List

  • [x] Functionality includes testing.
  • [ ] API changes companion pull request created, if applicable.
  • [ ] Public documentation issue/PR created, if applicable.

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.

finnegancarroll avatar Aug 22 '24 23:08 finnegancarroll