| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Hunt.Interpreter.BasicCommand
Description
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.
Constructors
| Search | Search query with pagination. |
| Completion | Auto-completion query with a limit. |
Fields
| |
| Select | Raw query without any ranking, scoring and ordering |
| InsertList | Insert documents. |
Fields
| |
| Update | Update the document description. |
Fields
| |
| DeleteDocs | Delete documents by |
| DeleteByQuery | Delete all documents of the query result. |
| InsertContext | Insert a context and the associated schema. |
Fields
| |
| DeleteContext | Delete a context. |
| LoadIx | Deserialize the index. |
| StoreIx | Serialize the index. |
| Status | Query general information about the server/index. |
| Sequence | Sequence commands. |
Fields
| |
| NOOP | No operation. Can be used in control flow and as an alive test. |
Instances
Available status commands.
Constructors
| StatusGC | Garbage collection statistics. |
| StatusDocTable | Document table JSON dump. |
| StatusIndex | Index JSON dump. |
| StatusContext Context | Index context dump |