Files
komp_ac/common/proto/search.proto
2026-04-29 00:40:36 +02:00

24 lines
516 B
Protocol Buffer

// In common/proto/search.proto
syntax = "proto3";
package komp_ac.search;
service Searcher {
rpc SearchTable(SearchRequest) returns (SearchResponse);
rpc ExactSearchTable(SearchRequest) returns (SearchResponse);
}
message SearchRequest {
optional string table_name = 1;
string query = 2;
string profile_name = 3;
}
message SearchResponse {
message Hit {
int64 id = 1; // PostgreSQL row ID
float score = 2;
string content_json = 3;
string table_name = 4;
}
repeated Hit hits = 1;
}