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

(-)a/Koha/SearchEngine/Elasticsearch.pm (-2 / +4 lines)
Lines 383-390 sub reset_elasticsearch_mappings { Link Here
383
    }
383
    }
384
384
385
    my $cache = Koha::Caches->get_instance();
385
    my $cache = Koha::Caches->get_instance();
386
    $cache->clear_from_cache('elasticsearch_search_fields_staff_client');
386
    $cache->clear_from_cache('elasticsearch_search_fields_staff_client_biblios');
387
    $cache->clear_from_cache('elasticsearch_search_fields_opac');
387
    $cache->clear_from_cache('elasticsearch_search_fields_opac_biblios');
388
    $cache->clear_from_cache('elasticsearch_search_fields_staff_client_authorities');
389
    $cache->clear_from_cache('elasticsearch_search_fields_opac_authorities');
388
390
389
    # FIXME return the mappings?
391
    # FIXME return the mappings?
390
}
392
}
(-)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