mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-25 19:15:48 +01:00
681817ceae
GitOrigin-RevId: 83514338be1d662518bab9fe5ab6eefef98f229f
30 lines
593 B
Protocol Buffer
30 lines
593 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 = 3;
|
|
uint32 position = 4;
|
|
}
|
|
|
|
message SearchResponse {
|
|
repeated ScoredDocument scored_documents = 1;
|
|
bool has_next = 2;
|
|
}
|
|
|
|
message SearchRequest {
|
|
repeated string schemas = 1;
|
|
string query = 2;
|
|
uint32 page = 3;
|
|
uint32 page_size = 4;
|
|
string language = 5;
|
|
int64 user_id = 6;
|
|
string session_id = 7;
|
|
}
|
|
|
|
service MetaSearch {
|
|
rpc search (SearchRequest) returns (SearchResponse) {}
|
|
}
|