Skip to content

Commit 2022146

Browse files
Add LIST command to PROTOCOL
1 parent 5b2de79 commit 2022146

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

PROTOCOL.md

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ _The Sonic Channel Search mode is used for querying the search index. Once in th
3838

3939
* `QUERY`: query database (syntax: `QUERY <collection> <bucket> "<terms>" [LIMIT(<count>)]? [OFFSET(<count>)]? [LANG(<locale>)]?`; time complexity: `O(1)` if enough exact word matches or `O(N)` if not enough exact matches where `N` is the number of alternate words tried, in practice it approaches `O(1)`)
4040
* `SUGGEST`: auto-completes word (syntax: `SUGGEST <collection> <bucket> "<word>" [LIMIT(<count>)]?`; time complexity: `O(1)`)
41+
* `LIST`: enumerates all words in an index (syntax: `LIST <collection> <bucket> [LIMIT(<count>)]? [OFFSET(<count>)]?`; time complexity: `O(N)` where `N` is the number of words enumerated, within provided limits)
4142
* `PING`: ping server (syntax: `PING`; time complexity: `O(1)`)
4243
* `HELP`: show help (syntax: `HELP [<manual>]?`; time complexity: `O(1)`)
4344
* `QUIT`: stop connection (syntax: `QUIT`; time complexity: `O(1)`)

0 commit comments

Comments
 (0)