Safe Haskell | None |
---|---|
Language | Haskell98 |
Basic "low-level" commands that are directly interpreted.
Hunt.Interpreter.Command defines the "high-level" commands accepted by the (JSON) API.
- data BasicCommand
- = Search { }
- | Completion {
- icPrefixCR :: Query
- icMaxCR :: Int
- | Select { }
- | InsertList {
- icDocs :: [ApiDocument]
- | Update {
- icDoc :: ApiDocument
- | DeleteDocs { }
- | DeleteByQuery { }
- | InsertContext { }
- | DeleteContext { }
- | LoadIx { }
- | StoreIx { }
- | Status { }
- | Sequence {
- icCmdSeq :: [BasicCommand]
- | NOOP
- data StatusCmd
Documentation
data BasicCommand Source
The "low-level" commands that are actually interpreted.
Search | Search query with pagination. |
Completion | Auto-completion query with a limit. |
| |
Select | Raw query without any ranking, scoring and ordering |
InsertList | Insert documents. |
| |
Update | Update the document description. |
| |
DeleteDocs | Delete documents by |
DeleteByQuery | Delete all documents of the query result. |
InsertContext | Insert a context and the associated schema. |
| |
DeleteContext | Delete a context. |
LoadIx | Deserialize the index. |
StoreIx | Serialize the index. |
Status | Query general information about the server/index. |
Sequence | Sequence commands. |
| |
NOOP | No operation. Can be used in control flow and as an alive test. |
Available status commands.
StatusGC | Garbage collection statistics. |
StatusDocTable | Document table JSON dump. |
StatusIndex | Index JSON dump. |
StatusContext Context | Index context dump |