Files
komp_ac/common/proto/search.proto
filipriec 9eb46cb5d3 kompAC
2025-07-25 11:59:18 +02:00

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;
}