]> git.koha-community.org Git - koha.git/commit
Bug 31213: Auto search simple term quoted
authorNick Clemens <nick@bywatersolutions.com>
Thu, 21 Jul 2022 18:16:22 +0000 (18:16 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 22 Jul 2022 14:11:19 +0000 (11:11 -0300)
commit2ce5f0532c8fea625c838725f70518421ebbb22b
treee50cf553adc9278f4c37e1d4a7c959f6588a1af8
parent0177b88eb33d398da4eb5ffb6344226930c3346b
Bug 31213: Auto search simple term quoted

This patch does a second search if the first had no results and was a simple single term search

We simply quote the term, rebuild the query, and rerun the search

This targets both Zebra and ES, but is more relevant for ES

To test:
0 - Have Koha running using ES
1 - Add titles your system "Ivy + Bean" "The 6:20 Man"
2 - Search for these titles without quotes - NO results under ES
3 - Search with quotes - you find them
4 - Apply patch, restart all
5 - Search again without quotes
6 - Success!
7 - Confirm search still works under Zebra

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
catalogue/search.pl
opac/opac-search.pl