Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Text.Search.Sphinx.Indexable
Documentation
data SchemaType #
Constructors
TField | |
TAttribute AttrT | |
TFieldString |
class SphinxSchema a where #
Minimal complete definition
Methods
toDocument :: a -> (Id, [(String, Attr)]) #
Convert a value of a to a document with a document id and some attributes and fields.
schema :: a -> [(String, SchemaType)] #
The first parameter should be ignored, but is used to satisfy Haskell's type system.
serialize :: SphinxSchema a => [a] -> Element #