Permalink
Browse files

fix buildExcerpt for 2.0-beta

  • Loading branch information...
1 parent 806a627 commit 014c983ff2b0befe98f94195e33e11685659f75c @gregwebs committed Nov 7, 2011
Showing with 6 additions and 1 deletion.
  1. +3 −0 Text/Search/Sphinx.hs
  2. +2 −0 Text/Search/Sphinx/ExcerptConfiguration.hs
  3. +1 −1 sphinx.cabal
View
@@ -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
@@ -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
@@ -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

0 comments on commit 014c983

Please sign in to comment.