[% SWITCH m.code %]
[% CASE 'error_on_update' %]
[% tx("An error occurred when updating mappings: {message}.", { message = m.message }) | html %]
[% CASE 'error_on_delete' %]
[% t("An error occurred when deleting the existing mappings. Nothing has been changed!") | $raw %]
[% tx("(search field {field_name} with mapping {marc_field}.)", { field_name = m.values.field_name, marc_field = m.values.marc_field }) | html %]
[% CASE 'invalid_field_weight' %]
[% tx("Invalid field weight '{weight}', must be a positive decimal number.", { weight = m.weight }) | html %]
[% CASE 'error_on_update_es_mappings' %]
[% tx("An error occurred when updating Elasticsearch index mappings: {message}.", { message = m.message }) | html %]
[% CASE 'reindex_required' %]
[% tx("Index '{index}' needs to be reindexed.", { index = m.index }) | html %]
[% CASE 'recreate_required' %]
[% tx("Index '{index}' needs to be recreated.", { index = m.index }) | html %]
[% CASE 'success_on_update' %]
[% t("Mappings updated successfully.") | $raw %]
[% CASE 'success_on_reset' %]
[% t("Mappings have been reset successfully.") | $raw %]
[% CASE %]
[% m.code | html %]
[% END %]
[% END %]
Search engine configuration (Elasticsearch)
[% IF errors %]
Changes have not been applied. Please check the following values:
[% END %]
[% IF reset_confirm %]
-
[% FOREACH e IN errors %]
- [% IF ( e.type == "malformed_mapping" ) %] The value "[% e.value | html %]" is not supported for mappings [% ELSIF ( e.type == "no_mapping" ) %] There is no mapping for the index [% e.value | html %] [% END %] [% END %]