Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix buildExcerpt for 2.0-beta

  • Loading branch information...
commit 014c983ff2b0befe98f94195e33e11685659f75c 1 parent 806a627
@gregwebs authored
View
3  Text/Search/Sphinx.hs
@@ -120,6 +120,9 @@ buildExcerpts config docs indexes words = do
strC config [ExConf.beforeMatch, ExConf.afterMatch, ExConf.chunkSeparator]
numC config [ExConf.limit, ExConf.around, ExConf.limitPassages, ExConf.limitWords, ExConf.startPassageId]
str $ ExConf.htmlStripMode config
+#ifndef ONE_ONE_BETA
+ str $ ExConf.passageBoundary config
+#endif
list str docs
modeFlag :: ExConf.ExcerptConfiguration -> (ExConf.ExcerptConfiguration -> Bool) -> Int -> Int
View
2  Text/Search/Sphinx/ExcerptConfiguration.hs
@@ -25,6 +25,7 @@ data ExcerptConfiguration = ExcerptConfiguration {
, loadFiles :: Bool
, htmlStripMode :: String
, allowEmpty :: Bool
+ , passageBoundary :: String
}
deriving (Show)
@@ -49,6 +50,7 @@ defaultConfig = ExcerptConfiguration {
, loadFiles = False
, htmlStripMode = "index" -- "none", "strip", "index", and "retain".
, allowEmpty = False
+ , passageBoundary = "none"
}
-- this seems better to me
View
2  sphinx.cabal
@@ -1,5 +1,5 @@
Name: sphinx
-Version: 0.5.1
+Version: 0.5.2
Synopsis: Haskell bindings to the Sphinx full-text searching deamon.
Description: Haskell bindings to the Sphinx full-text searching deamon. Compatible with Sphinx version 2.0
Category: Text, Search, Database
Please sign in to comment.
Something went wrong with that request. Please try again.