View | Details | Raw Unified | Return to bug 39580
Collapse All | Expand All

(-)a/Koha/SearchEngine/Elasticsearch.pm (-3 / +3 lines)
Lines 25-30 use Koha::Database; Link Here
25
use Koha::Exceptions::Config;
25
use Koha::Exceptions::Config;
26
use Koha::Exceptions::Elasticsearch;
26
use Koha::Exceptions::Elasticsearch;
27
use Koha::Filter::MARC::EmbedSeeFromHeadings;
27
use Koha::Filter::MARC::EmbedSeeFromHeadings;
28
use Koha::I18N qw(__);
28
use Koha::SearchFields;
29
use Koha::SearchFields;
29
use Koha::SearchMarcMaps;
30
use Koha::SearchMarcMaps;
30
use Koha::Caches;
31
use Koha::Caches;
Lines 1501-1510 sub process_error { Link Here
1501
    warn $msg;    # simple logging
1502
    warn $msg;    # simple logging
1502
1503
1503
    # This is super-primitive
1504
    # This is super-primitive
1504
    return "Unable to understand your search query, please rephrase and try again.\n"
1505
    return __("Unable to understand your search query, please rephrase and try again.\n")
1505
        if $msg =~ /ParseException|parse_exception/;
1506
        if $msg =~ /ParseException|parse_exception/;
1506
1507
1507
    return "Unable to perform your search. Please try again.\n";
1508
    return __("Unable to perform your search. Please try again.\n");
1508
}
1509
}
1509
1510
1510
=head2 _read_configuration
1511
=head2 _read_configuration
1511
- 

Return to bug 39580