Lines 1218-1224
sub process_error {
Link Here
|
1218 |
warn $msg; # simple logging |
1218 |
warn $msg; # simple logging |
1219 |
|
1219 |
|
1220 |
# This is super-primitive |
1220 |
# This is super-primitive |
1221 |
return "Unable to understand your search query, please rephrase and try again.\n" if $msg =~ /ParseException|parse_exception/; |
1221 |
return "There might be results, but there is ElasticSearch query language syntax error in your search request: remove or ". |
|
|
1222 |
"escape with backslash ES-language reserved characters (those are: + - = && || > < ! ( ) { } [ ] ^ \" ~ * ? : \ / ) ". |
1223 |
"or change it to be the proper ES-language request and try again.\n" |
1224 |
if $msg =~ /ParseException|parse_exception/; |
1222 |
|
1225 |
|
1223 |
return "Unable to perform your search. Please try again.\n"; |
1226 |
return "Unable to perform your search. Please try again.\n"; |
1224 |
} |
1227 |
} |
1225 |
- |
|
|