search fix to new architecture
This commit is contained in:
@@ -4,6 +4,11 @@ package komp_ac.search;
|
||||
|
||||
service Searcher {
|
||||
rpc Search(SearchRequest) returns (SearchResponse);
|
||||
rpc Count(SearchRequest) returns (SearchCountResponse);
|
||||
}
|
||||
|
||||
message SearchCountResponse {
|
||||
uint64 count = 1;
|
||||
}
|
||||
|
||||
enum MatchMode {
|
||||
@@ -26,6 +31,16 @@ message SearchRequest {
|
||||
optional uint32 limit = 5;
|
||||
optional uint32 offset = 6;
|
||||
optional SearchOrder order = 7;
|
||||
// Current rows are the default so pickers and relationship counts never
|
||||
// select historical records. Callers may explicitly search immutable row
|
||||
// archives as well.
|
||||
SearchVersionScope version_scope = 8;
|
||||
}
|
||||
|
||||
enum SearchVersionScope {
|
||||
SEARCH_VERSION_SCOPE_CURRENT = 0;
|
||||
SEARCH_VERSION_SCOPE_ARCHIVED = 1;
|
||||
SEARCH_VERSION_SCOPE_ALL = 2;
|
||||
}
|
||||
|
||||
message SearchOrder {
|
||||
@@ -48,6 +63,10 @@ message SearchResponse {
|
||||
repeated string row_display_values = 5;
|
||||
repeated string row_display_columns = 6;
|
||||
optional uint64 position = 7;
|
||||
// Version 0 means the source predates managed row versioning. New managed
|
||||
// rows always return a positive version.
|
||||
int64 version_number = 8;
|
||||
bool archived = 9;
|
||||
}
|
||||
repeated Hit hits = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user