[Koha-bugs] [Bug 25900] QueryWeightFields creates unnecessary whitespace
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jun 1 12:27:29 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25900
Peter Vashchuk <stalkernoid at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #114228|0 |1
is obsolete| |
--- Comment #20 from Peter Vashchuk <stalkernoid at gmail.com> ---
Created attachment 121529
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=121529&action=edit
Bug 25900: trim spaces in search with Zebra and QueryWeightFields
Search with Zebra and system preference QueryWeightFields on builds a query
with surrounding double quotes : q=tree => q="tree". Therefore existing double
quotes are replaced by a space : q="tree" => q=" tree ".
Patch corrects by adding trim on operand after transforming quotes into spaces.
Test plan :
1) Use Zebra searchengine and enable system preference QueryWeightFields
2) Go to advanced search
3) Search on two words from a title, surrounded by double quotes. Like "Order
of the Phoenix"
4) Check you get same results with an without patch
Signed-off-by: Petro Vashchuk <stalkernoid at gmail.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list