Text.Search.Sphinx.Types
- data SearchdCommand
- = ScSearch
- | ScExcerpt
- | ScUpdate
- | ScKeywords
- searchdCommand :: SearchdCommand -> Int
- data VerCommand
- = VcSearch
- | VcExcerpt
- | VcUpdate
- | VcKeywords
- data Status
- data QueryStatus
- = QueryOK
- | QueryWARNING
- | QueryERROR Int
- data MatchMode
- data Rank
- data Sort
- = Relevance
- | AttrDesc
- | AttrAsc
- | TimeSegments
- | SortExtended
- | Expr
- data Filter
- data AttrT
- data GroupByFunction
- data QueryResult = QueryResult {
- matches :: [Match]
- total :: Int
- totalFound :: Int
- words :: [(ByteString, Int, Int)]
- attributeNames :: [ByteString]
- data SingleResult
- data Result a
- = Ok a
- | Warning ByteString a
- | Error Int ByteString
- | Retry ByteString
- data Match = Match {
- documentId :: Int64
- documentWeight :: Int
- attributeValues :: [Attr]
- data Attr
- = AttrMulti [Attr]
- | AttrUInt Int
- | AttrBigInt Int64
- | AttrString ByteString
- | AttrFloat Float
- data ByteString
Documentation
data SearchdCommand Source
Search commands
Constructors
| ScSearch | |
| ScExcerpt | |
| ScUpdate | |
| ScKeywords |
Instances
data VerCommand Source
Current client-side command implementation versions
Constructors
| VcSearch | |
| VcExcerpt | |
| VcUpdate | |
| VcKeywords |
Instances
Important! 2.0 compatible
Searchd status codes
data QueryStatus Source
status from an individual query
Constructors
| QueryOK | |
| QueryWARNING | |
| QueryERROR Int |
Instances
Match modes
Ranking modes (ext2 only)
Sort modes
Constructors
| Relevance | |
| AttrDesc | |
| AttrAsc | |
| TimeSegments | |
| SortExtended | |
| Expr |
Filter types
Constructors
| ExclusionFilter Filter | |
| FilterValues String [Int64] | |
| FilterRange String Int64 Int64 |
shortcut for creating an exclusion filter
Attribute types
data QueryResult Source
The result of a query
Constructors
| QueryResult | |
Fields
| |
Instances
data SingleResult Source
a single query result, runQueries returns a list of these
Constructors
| QueryOk QueryResult | |
| QueryWarning ByteString QueryResult | |
| QueryError Int ByteString |
Instances
a result returned from searchd
Constructors
| Ok a | |
| Warning ByteString a | |
| Error Int ByteString | |
| Retry ByteString |
Constructors
| Match | |
Fields
| |
Constructors
| AttrMulti [Attr] | |
| AttrUInt Int | |
| AttrBigInt Int64 | |
| AttrString ByteString | |
| AttrFloat Float |
data ByteString
A space-efficient representation of a Word8 vector, supporting many
efficient operations. A ByteString contains 8-bit characters only.
Instances of Eq, Ord, Read, Show, Data, Typeable