[Koha-bugs] [Bug 28316] Fix ES crashes related to various punctuation characters

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Aug 21 20:31:05 CEST 2021


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

--- Comment #71 from Andrew Nugged <nugged at gmail.com> ---
Generally about these complications and some mess with ES search:

we don't have at all ES query language parser and transmitting requests
directly to ES and getting its "parse_exception" reactions, so in Perl can't
explain in which part of the syntax the issue,

if Operator wants to have a direct search result, then he/she must escape
special symbols for not to be "commands" for ES or use quoted texts to search
exact terms.

this is a "fuzzy" search though so sometimes wrong queries might lead to not
having results even if there are such characters in the book name, a tradeoff
for full-text search.

We have only basic analysis which by the way was lost and not worked and fixed
in Bug 28736,

at least now the user will know that it's not "nothing found", but there are
problems in special ES query syntax. How to use that syntax the user should
read from ES language docs (or it we have some intro in Koha Doc for that?),

but if the operator knows that there is ES syntax used and there are special
characters and should use those properly: escape or quote.

In other cases, it becomes a "weird" mix of words and special characters which
leads to "unpredictable behavior" if you don't know how to use ES syntax.

And also error message was mangled before, but now in Bug 28736 user knows that
it's not "book not found", but the syntax and special language for ES used
wrongly, so "please escape or quote".

But this my answer actually to forward that 28736 brought some light, as first
part covering "most things", which we not covering in this current ticket.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list