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 request: ". |
|
|
1222 |
"remove or escape with backslash special ES characters like !:[]{}^ or create a proper ES-language request and try again.\n" |
1223 |
if $msg =~ /ParseException|parse_exception/; |
1222 |
|
1224 |
|
1223 |
return "Unable to perform your search. Please try again.\n"; |
1225 |
return "Unable to perform your search. Please try again.\n"; |
1224 |
} |
1226 |
} |
1225 |
- |
|
|