Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add encoding option to configuration.

We're also using UTF-8 as default.
  • Loading branch information...
commit 230bcb1cb6cb9aa09d7fdd15b1fd2d7f9f78b76e 1 parent f118e9f
@adimit adimit authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  Text/Search/Sphinx/Configuration.hs
View
3  Text/Search/Sphinx/Configuration.hs
@@ -8,6 +8,8 @@ data Configuration = Configuration {
host :: String
-- | The portnumber of the Sphinx daemon
, port :: Int
+ -- | Encoding used to encode queries to the server, and decode server responses
+ , encoding :: String
-- | Per-field weights
, weights :: [Int]
-- | How many records to seek from result-set start (default is 0)
@@ -59,6 +61,7 @@ data Configuration = Configuration {
defaultConfig = Configuration {
port = 3312
, host = "127.0.0.1"
+ , encoding = "UTF-8"
, weights = []
, offset = 0
, limit = 20
Please sign in to comment.
Something went wrong with that request. Please try again.