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

(-)a/Koha/SearchEngine/Elasticsearch.pm (-2 / +4 lines)
Lines 385-392 sub reset_elasticsearch_mappings { Link Here
385
    }
385
    }
386
386
387
    my $cache = Koha::Caches->get_instance();
387
    my $cache = Koha::Caches->get_instance();
388
    $cache->clear_from_cache('elasticsearch_search_fields_staff_client');
388
    $cache->clear_from_cache('elasticsearch_search_fields_staff_client_biblios');
389
    $cache->clear_from_cache('elasticsearch_search_fields_opac');
389
    $cache->clear_from_cache('elasticsearch_search_fields_opac_biblios');
390
    $cache->clear_from_cache('elasticsearch_search_fields_staff_client_authorities');
391
    $cache->clear_from_cache('elasticsearch_search_fields_opac_authorities');
390
392
391
    # FIXME return the mappings?
393
    # FIXME return the mappings?
392
}
394
}
(-)a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm (-2 / +1 lines)
Lines 1139-1145 sub _search_fields { Link Here
1139
        subfield => undef,
1139
        subfield => undef,
1140
    };
1140
    };
1141
    my $cache = Koha::Caches->get_instance();
1141
    my $cache = Koha::Caches->get_instance();
1142
    my $cache_key = 'elasticsearch_search_fields' . ($params->{is_opac} ? '_opac' : '_staff_client');
1142
    my $cache_key = 'elasticsearch_search_fields' . ($params->{is_opac} ? '_opac' : '_staff_client') . "_" . $self->index;
1143
    my $search_fields = $cache->get_from_cache($cache_key, { unsafe => 1 });
1143
    my $search_fields = $cache->get_from_cache($cache_key, { unsafe => 1 });
1144
    if (!$search_fields) {
1144
    if (!$search_fields) {
1145
        # The reason we don't use Koha::SearchFields->search here is we don't
1145
        # The reason we don't use Koha::SearchFields->search here is we don't
1146
- 

Return to bug 25278