[Koha-patches] [PATCH] Bug 5160 Stop words should be stop words not strings

Colin Campbell colin.campbell at ptfs-europe.com
Mon Aug 23 14:04:29 CEST 2010


Stop words in the default zebra config were being defined as
initial strings not as words causing then to truncate legitimate
headings.

This patch corrects that behaviour. It does not address the
question of what should be in the default file
---
 etc/zebradb/etc/word-phrase-utf.chr |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/etc/zebradb/etc/word-phrase-utf.chr b/etc/zebradb/etc/word-phrase-utf.chr
index 3268c62..b41b298 100644
--- a/etc/zebradb/etc/word-phrase-utf.chr
+++ b/etc/zebradb/etc/word-phrase-utf.chr
@@ -252,27 +252,27 @@ map ý			y
 map Ý			y
 
 # mapping blank string
-map (^impr)         @
+map (^impr\s)       @
 map (^impr\.)       @
-map (^Impr)         @
+map (^Impr\s)       @
 map (^Impr\.)       @
-map (^IMPR)         @
+map (^IMPR\s)       @
 map (^IMPR\.)       @
-map (^DL)           @
+map (^DL\s)         @
 map (^DL\.)         @
-map (^Dl)           @
+map (^Dl\s)         @
 map (^Dl\.)         @
-map (^dl)           @
+map (^dl\s)         @
 map (^dl\.)         @
-map (^cop)          @
+map (^cop\s)        @
 map (^cop\.)        @
-map (^Cop)          @
+map (^Cop\s)        @
 map (^Cop\.)        @
-map (^COP)          @
+map (^COP\s)        @
 map (^COP\.)        @
-map (^c)            @
+map (^c\s)          @
 map (^c\.)          @
-map (^C)            @
+map (^C\s)          @
 map (^C\.)          @
 map (^\[sd\])       @
 map (^\[s\.d\.\])   @
-- 
1.7.2.1



More information about the Koha-patches mailing list