From 5ca9430d1e7233adfb8af461ddc5cecd7470c39f Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Wed, 17 Jun 2015 12:28:39 +0200 Subject: [PATCH] Bug 14401: Zebra index configuration doesn't allow exact search for C. 2 lines in the Zebra configuration files prevent an exact search for C., while all other [A-Z]. searches work correctly. After taking a look at the /etc/zebradb/etc/word-phrase-utf.chr those 2 lines cause the problem: map (^c\.) @ map (^C\.) @ I propose to remove them. To test: - Catalog a record with an item with callnumber: C. - Catalog a record with an item with callnumber: B. - Try seaching for the second using callnum,ext:B. (exact field search) - Verify search works. - Try searching for the other with callnum,ext:C. - Verify no result. - Apply the patch - copy the zebra config file if necessary into the right spot - Reindex - Repeat searches - both should not bring up the correct record. Signed-off-by: Indranil Das Gupta (L2C2 Technologies) Signed-off-by: Kyle M Hall Signed-off-by: Mason James --- etc/zebradb/etc/word-phrase-utf.chr | 2 -- 1 file changed, 2 deletions(-) diff --git a/etc/zebradb/etc/word-phrase-utf.chr b/etc/zebradb/etc/word-phrase-utf.chr index b773db888b..e8cf57e308 100644 --- a/etc/zebradb/etc/word-phrase-utf.chr +++ b/etc/zebradb/etc/word-phrase-utf.chr @@ -304,9 +304,7 @@ map (^Cop\.) @ map (^COP\s) @ map (^COP\.) @ map (^c\s) @ -map (^c\.) @ map (^C\s) @ -map (^C\.) @ map (^\[sd\]) @ map (^\[s\.d\.\]) @ map (^\[Sd\]) @