sphinx-0.6.0.2: Haskell bindings to the Sphinx full-text searching daemon.

Safe HaskellSafe
LanguageHaskell98

Text.Search.Sphinx.Types

Synopsis

Documentation

data Query Source

Data structure representing one query. It can be sent with runQueries or runQueries' to the server in batch mode.

Constructors

Query 

Fields

queryString :: Text

The actual query string

queryIndexes :: Text

The indexes, "*" means every index

queryComment :: Text

A comment string.

Instances

data VerCommand Source

Current client-side command implementation versions

verCommand :: Num a => VerCommand -> a Source

Important! 2.0 compatible

data Status Source

Searchd status codes

Constructors

OK 
RETRY 
WARNING 
ERROR Int 

Instances

data QueryStatus Source

status from an individual query

data Rank Source

Ranking modes (ext2 only)

exclude :: Filter -> Filter Source

shortcut for creating an exclusion filter

toAttrT :: (Eq a, Num a) => a -> AttrT Source

attrT :: Num a => AttrT -> a Source

data QueryResult Source

The result of a query

Constructors

QueryResult 

Fields

matches :: [Match]

The matches

total :: Int

Total amount of matches retrieved on server by this query.

totalFound :: Int

Total amount of matching documents in index.

words :: [(Text, Int, Int)]

processed words with the number of docs and the number of hits.

attributeNames :: [ByteString]

List of attribute names returned in the result. | The Match will contain just the attribute values in the same order.

data SingleResult Source

a single query result, runQueries returns a list of these

data Result a Source

a result returned from searchd

Constructors

Ok a 
Warning Text a 
Error Int Text 
Retry Text 

Instances

Show a => Show (Result a) Source 

data ByteString :: *

A space-efficient representation of a Word8 vector, supporting many efficient operations.

A lazy ByteString contains 8-bit bytes, or by using the operations from Data.ByteString.Lazy.Char8 it can be interpreted as containing 8-bit characters.