21 lines
412 B
Protocol Buffer
21 lines
412 B
Protocol Buffer
// In common/proto/search.proto
|
|
syntax = "proto3";
|
|
package KompAC.search;
|
|
|
|
service Searcher {
|
|
rpc SearchTable(SearchRequest) returns (SearchResponse);
|
|
}
|
|
|
|
message SearchRequest {
|
|
string table_name = 1;
|
|
string query = 2;
|
|
}
|
|
message SearchResponse {
|
|
message Hit {
|
|
int64 id = 1; // PostgreSQL row ID
|
|
float score = 2;
|
|
string content_json = 3;
|
|
}
|
|
repeated Hit hits = 1;
|
|
}
|