[Koha-bugs] [Bug 28316] Cannot search with square brackets []

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 27 09:48:03 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28316

Emmi Takkinen <emmi.takkinen at koha-suomi.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #121435|0                           |1
        is obsolete|                            |
                 CC|                            |emmi.takkinen at koha-suomi.fi

--- Comment #7 from Emmi Takkinen <emmi.takkinen at koha-suomi.fi> ---
Created attachment 121443
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=121443&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.

Signed-off-by: Emmi Takkinen <emmi.takkinen at koha-suomi.fi>

-- 
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