diff --git a/docs/object.md b/docs/object.md index e749b98..dbdd6dc 100644 --- a/docs/object.md +++ b/docs/object.md @@ -63,7 +63,7 @@ rpc Get(GetRequest) returns (stream GetResponse); rpc Put(stream PutRequest) returns (PutResponse); rpc Delete(DeleteRequest) returns (DeleteResponse); rpc Head(HeadRequest) returns (HeadResponse); -rpc Search(SearchRequest) returns (SearchResponse); +rpc Search(SearchRequest) returns (stream SearchResponse); rpc GetRange(GetRangeRequest) returns (GetRangeResponse); rpc GetRangeHash(GetRangeHashRequest) returns (GetRangeHashResponse); diff --git a/object/service.pb.go b/object/service.pb.go index 43013fe..05e7c4b 100644 Binary files a/object/service.pb.go and b/object/service.pb.go differ diff --git a/object/service.proto b/object/service.proto index 12f9741..4487a49 100644 --- a/object/service.proto +++ b/object/service.proto @@ -40,7 +40,7 @@ service Service { // Search objects in container. Version of query language format SHOULD BE // set to 1. Search query represented in serialized format (see query // package). - rpc Search(SearchRequest) returns (SearchResponse); + rpc Search(SearchRequest) returns (stream SearchResponse); // GetRange of data payload. Ranges are set of pairs (offset, length). // Fragments order in response corresponds to ranges order in request.