Bug 14401: Zebra index configuration doesn't allow exact search for C.
authorKatrin Fischer <katrin.fischer@bsz-bw.de>
Wed, 17 Jun 2015 10:28:39 +0000 (12:28 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 8 Jul 2015 21:02:16 +0000 (09:02 +1200)
commit5a7c1634c6fcdd1b6568e87145868f7e9ebf2611
tree51e4f83b6b4410027512a65b560b8e0c1c915f9d
parenta36eeb458c8bb0944cb53fb12d6a59348f29b38f
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) <indradg@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
(cherry picked from commit f86743d893b61a4609d2f02a175db9944710067e)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
etc/zebradb/etc/word-phrase-utf.chr