// In common/proto/search.proto
syntax = "proto3";
package komp_ac.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;
}
