sphinx-0.0: Haskell bindings to the Sphinx full-text searching deamon.

Text.Search.Sphinx

Description

This is the Haskell version of the Sphinx searchd client.

Synopsis

Documentation

data Configuration Source

The configuration for a query

Constructors

Configuration 

Fields

host :: String

The hostname of the Sphinx daemon

port :: PortID

The portnumber of the Sphinx daemon

offset :: Int

How many records to seek from result-set start (default is 0)

limit :: Int

How many records to return from result-set starting at offset (default is 20)

mode :: Int

Query matching mode

ranker :: Int

Ranking mode

sort :: Int

Match sorting mode

sortBy :: String

Attribute to sort by

minId :: Int

Minimum ID to match, 0 means no limit

maxId :: Int

Maximum ID to match, 0 means no limit

groupSort :: String

Group-by sorting clause (to sort groups in result set with)

query :: Configuration -> String -> IO [SearchResult]Source

A basic, default configuration.