mirror of
https://github.com/nexus-stc/hyperboria
synced 2024-12-11 20:27:50 +01:00
ad8f0b2700
1 internal commit(s) GitOrigin-RevId: 8bba552568b30f42662051baa2cb2fb088361b96
28 lines
543 B
Protocol Buffer
28 lines
543 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 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;
|
|
}
|
|
|
|
service Search {
|
|
rpc search (SearchRequest) returns (SearchResponse) {}
|
|
}
|