hunt-searchengine-0.3.0.1: A search and indexing engine.

Safe HaskellNone
LanguageHaskell98

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.

Synopsis

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

icPrefixCR :: Query
 
icMaxCR :: Int
 
Select

Raw query without any ranking, scoring and ordering

Fields

icQuery :: Query
 
InsertList

Insert documents.

Fields

icDocs :: [ApiDocument]
 
Update

Update the document description.

Fields

icDoc :: ApiDocument
 
DeleteDocs

Delete documents by URI.

Fields

icUris :: Set URI
 
DeleteByQuery

Delete all documents of the query result.

Fields

icQueryD :: Query
 
InsertContext

Insert a context and the associated schema.

DeleteContext

Delete a context.

Fields

icDCon :: Context
 
LoadIx

Deserialize the index.

Fields

icPath :: FilePath
 
StoreIx

Serialize the index.

Fields

icPath :: FilePath
 
Status

Query general information about the server/index.

Fields

icStatus :: StatusCmd
 
Sequence

Sequence commands.

Fields

icCmdSeq :: [BasicCommand]
 
NOOP

No operation. Can be used in control flow and as an alive test.

data StatusCmd Source

Available status commands.

Constructors

StatusGC

Garbage collection statistics.

StatusDocTable

Document table JSON dump.

StatusIndex

Index JSON dump.

StatusContext Context

Index context dump