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

(-)a/admin/searchengine/elasticsearch/mappings.pl (-3 / +1 lines)
Lines 176-181 for my $index_name (@index_names) { Link Here
176
    }
176
    }
177
}
177
}
178
178
179
my @facetable_fields = Koha::SearchEngine::Elasticsearch->get_facetable_fields();
179
for my $index_name (@index_names) {
180
for my $index_name (@index_names) {
180
    my $search_fields = Koha::SearchFields->search(
181
    my $search_fields = Koha::SearchFields->search(
181
        { 'search_marc_map.index_name' => $index_name, 'search_marc_map.marc_type' => $marc_type, },
182
        { 'search_marc_map.index_name' => $index_name, 'search_marc_map.marc_type' => $marc_type, },
Lines 187-193 for my $index_name (@index_names) { Link Here
187
    );
188
    );
188
189
189
    my @mappings;
190
    my @mappings;
190
    my @facetable_fields = Koha::SearchEngine::Elasticsearch->get_facetable_fields();
191
    my @facetable_field_names = map { $_->name } @facetable_fields;
191
    my @facetable_field_names = map { $_->name } @facetable_fields;
192
192
193
    while ( my $s = $search_fields->next ) {
193
    while ( my $s = $search_fields->next ) {
Lines 215-221 while ( my $search_field = $search_fields->next ) { Link Here
215
    push @all_search_fields, $search_field_unblessed;
215
    push @all_search_fields, $search_field_unblessed;
216
}
216
}
217
217
218
my @facetable_fields = Koha::SearchEngine::Elasticsearch->get_facetable_fields();
219
$template->param(
218
$template->param(
220
    indexes           => \@indexes,
219
    indexes           => \@indexes,
221
    all_search_fields => \@all_search_fields,
220
    all_search_fields => \@all_search_fields,
222
- 

Return to bug 18235