]> 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)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Mon, 12 Sep 2022 11:48:49 +0000 (13:48 +0200)
commitc2c6967f7179182ef5b3cc5d972a370852f1a558
tree9bf961da222935ef1759f3d873e1e3393873a556
parenteff7bb8df389947bb5c2c4f5a6c8961acb1a0198
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>
(cherry picked from commit 2ce5f0532c8fea625c838725f70518421ebbb22b)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit e1500c7c6b054ccd4cb7575641809e696418cdce)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
catalogue/search.pl
opac/opac-search.pl