Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- data Configuration = Configuration {
- host :: String
- port :: Int
- encoding :: String
- weights :: [Int]
- offset :: Int
- limit :: Int
- mode :: MatchMode
- ranker :: Rank
- sort :: Sort
- sortBy :: String
- minId :: Int
- maxId :: Int
- filters :: [Filter]
- groupBy :: String
- groupSort :: String
- groupByFunc :: GroupByFunction
- groupDistinct :: String
- maxMatches :: Int
- cutoff :: Int
- retryCount :: Int
- retryDelay :: Int
- indexWeights :: [(String, Int)]
- maxQueryTime :: Int
- fieldWeights :: [(String, Int)]
- selectClause :: String
- defaultConfig :: Configuration
Documentation
data Configuration Source
The configuration for a query
A note about encodings: The encoding specified here is used to encode
every Text
value that is sent to the server, and it used to decode all
of the server's answers, including error messages.
If the specified encoding doesn't support characters sent to the server,
they will silently be substituted with the byte value of '\SUB' ::
before transmission.Char
If the server sends a byte value back that the encoding doesn't understand,
the affected bytes will be converted into special values as
specified by that encoding. For example, when decoding invalid UTF-8,
all invalid bytes are going to be substituted with '\65533' ::
.Char
Configuration | |
|
defaultConfig :: Configuration Source
A basic, default configuration.