@@ -, +, @@ syntax --- Koha/SearchEngine/Elasticsearch.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/Koha/SearchEngine/Elasticsearch.pm +++ a/Koha/SearchEngine/Elasticsearch.pm @@ -1218,7 +1218,9 @@ sub process_error { warn $msg; # simple logging # This is super-primitive - return "Unable to understand your search query, please rephrase and try again.\n" if $msg =~ /ParseException|parse_exception/; + return "There might be results, but there is ElasticSearch query language syntax error in your request: ". + "remove or escape with backslash special ES characters like !:[]{}^ or create a proper ES-language request and try again.\n" + if $msg =~ /ParseException|parse_exception/; return "Unable to perform your search. Please try again.\n"; } --