7 // Text query (e.g. “i3Font”) which will be translated into a trigram query
8 // (e.g. "3Fo" "Fon" "i3F" "ont").
13 // A path which match the requested trigram query (likely to match
14 // the regular expression from which the trigram query was derived, but can
15 // contain false positives).
19 message ReplaceIndexRequest {
20 string replacement_path = 1;
23 message ReplaceIndexReply {
26 // IndexBackend allows querying a trigram index.
27 service IndexBackend {
28 // Files returns a list of files which match the specified query in the
30 rpc Files(FilesRequest) returns (stream FilesReply) {}
32 // Replaces the loaded index with the specified replacement index. On a file
33 // system level, the specified file is mv'ed to the file specified by
35 rpc ReplaceIndex(ReplaceIndexRequest) returns (ReplaceIndexReply) {}