]> git.koha-community.org Git - koha.git/commit
Bug 28316: escape brackets in the search query
authorPetro Vashchuk <stalkernoid@gmail.com>
Tue, 13 Jul 2021 09:13:03 +0000 (12:13 +0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 20 Sep 2021 12:04:48 +0000 (14:04 +0200)
commitfa39f9a65efc15a7b6bcd4d0f4629294ab962060
treeb0314fec756026b9aacee1206f40ea8b73e7a2f4
parent999f8ba0a8f36b3237e3e18758738bdb3812d31a
Bug 28316: escape brackets in the search query

This patch screens square and curly brackets which have no special
language meaning.

To reproduce:
1) using ES, search for the book with title that contains
square and/or curly brackets, like "book [second edition]", which will
result in error.
2) apply the patch.
3) search for that book again, ensure that it works now.

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm