hyperboria/nexus/meta_api/proto/search_service.proto
the-superpirate dd23846059 - [nexus] Refactoring
- [nexus] Switch bot
  - [bot] Added extra receivers functionality

GitOrigin-RevId: 68fc32d3e79ff411758f54f435fe8680fc42dead
2022-03-28 17:42:18 +03:00

28 lines
549 B
Protocol Buffer

syntax = "proto3";
package nexus.meta_api.proto;
import "nexus/models/proto/typed_document.proto";
message ScoredDocument {
nexus.models.proto.TypedDocument typed_document = 1;
float score = 2;
uint32 position = 3;
}
message SearchRequest {
repeated string index_aliases = 1;
string query = 2;
uint32 page = 3;
uint32 page_size = 4;
string language = 5;
}
message SearchResponse {
repeated ScoredDocument scored_documents = 1;
bool has_next = 2;
}
service Search {
rpc search (SearchRequest) returns (SearchResponse) {}
}