6786: False detection of index names in Search; make index names case insensitive
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Thu, 25 Aug 2011 11:12:38 +0000 (13:12 +0200)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Sat, 8 Oct 2011 21:55:51 +0000 (17:55 -0400)
commitbb0ddc28d126471c4ebc2873cc733398818d2cb4
tree2e25f70c5ad70cf9a98f9214a0318f8a25be52fa
parent908dc3da4ad899b06a055a77986c68357ed59f7e
6786: False detection of index names in Search; make index names case insensitive

Fixing the regex to detect index names in ccl queries.  Changing loop
structure: looping through the index candidates in the query is faster than
testing every index name with a regex.  Making the index comparison case
insensitive will benefit users misspelling the case of an index; Zebra does not
care about it.  Test the change by searching on a word followed by a : or =
character.  Previously, when that word contained an index name like an or nb,
the search would crash.

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Perltidied the new block to fix indentation

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit cd1fbb7510c8d931cf0658d62ff66bdfbb079ef1)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
C4/Search.pm