[Koha-bugs] [Bug 28316] Cannot search with square brackets []
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed May 26 16:38:25 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28316
--- Comment #6 from Peter Vashchuk <stalkernoid at gmail.com> ---
Created attachment 121435
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=121435&action=edit
Bug 28316: screen square and curly brackets in the search query
This patch screens all square and curly brackets which have no special
language meaning, while keeping ranges as they are, allowing ES to
search for biblios with titles that contain square and curly brackets
and at the same time allows the use of range searches ([1990 TO 2000]).
Previously, there was old time fix for curly brackets that replaced them
with quotes which made curly brackets range functionality not working,
that code was also removed with this patch Also this patch adds tests
for this behavior.
To reproduce:
1) with ES enabled, search for a book with tittle like "test [test]",
which will result in error.
2) apply the patch.
3) search for that book again, which should work now.
4) run test QueryBuilder.t to make sure that it runs successfully.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list