Text.Search.Sphinx.Types
- data SearchdCommand
- = ScSearch
- | ScExcerpt
- | ScUpdate
- | ScKeywords
- searchdCommand :: SearchdCommand -> Int
- data VerCommand
- = VcSearch
- | VcExcerpt
- | VcUpdate
- | VcKeywords
- data Searchd
- searchd :: Searchd -> Int
- data MatchMode
- matchMode :: MatchMode -> Int
- data Rank
- = ProximityBm25
- | Bm25
- | None
- | WordCount
- rank :: Rank -> Int
- data Sort
- = Relevance
- | AttrDesc
- | AttrAsc
- | TimeSegments
- | SortExtended
- | Expr
- sort :: Sort -> Int
- data Filter
- = Values
- | Range
- | FloatRange
- filter :: Filter -> Int
- data AttrT
- = AttrTInteger
- | AttrTTimestamp
- | AttrTOrdinal
- | AttrTBool
- | AttrTFloat
- | AttrTMulti
- data GroupByFunction
- groupByFunction :: GroupByFunction -> Int
- data SearchResult = SearchResult {
- matches :: [Match]
- total :: Int
- totalFound :: Int
- words :: [(ByteString, Int, Int)]
- data Match = Match {
- documentId :: Int64
- documentWeight :: Int
- attributeValues :: [Attr]
- data Attr
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
Searchd status codes
Match modes
Ranking modes (ext2 only)
Constructors
| ProximityBm25 | |
| Bm25 | |
| None | |
| WordCount |
Sort modes
Constructors
| Relevance | |
| AttrDesc | |
| AttrAsc | |
| TimeSegments | |
| SortExtended | |
| Expr |
Attribute types
Constructors
| AttrTInteger | |
| AttrTTimestamp | |
| AttrTOrdinal | |
| AttrTBool | |
| AttrTFloat | |
| AttrTMulti |
data SearchResult Source
The result of a query
Constructors
| SearchResult | |
Fields
| |
Instances
Constructors
| Match | |
Fields
| |