[% USE raw %] [% USE Asset %] [% SET footerjs = 1 %] [% PROCESS 'i18n.inc' %] [% INCLUDE 'doc-head-open.inc' %] Search engine configuration (Elasticsearch) › Administration › Koha [% INCLUDE 'doc-head-close.inc' %] [% INCLUDE 'header.inc' %] [% INCLUDE 'prefs-admin-search.inc' %] [% INCLUDE 'blocking_errors.inc' %]
[% FOR m IN messages %]
[% 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 'missing_mandatory_fields' %] [% t("You attempted to delete all mappings for a required index, you must leave at least one mapping") | $raw %] [% 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 'elasticsearch_disabled' %] [% t("Elasticsearch is currently disabled.") | $raw %] [% CASE %] [% m.code | html %] [% END %]
[% END %]

Search engine configuration (Elasticsearch)

[% IF errors %]
Changes have not been applied. Please check the following values:
    [% 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 %]
[% END %] [% IF reset_confirm %]

The current mappings you see on the screen will be erased and replaced by the mappings in the mappings.yaml file.

[% END %]
Warning: Any changes to the configuration will only take effect after a full reindex. Until then searching may not work correctly.

Weight: define weight as a positive number. Higher numbers indicate increased relevancy. Note that fields weighting works only for simple search.

  1. Only search fields mapped with biblios can be weighted
  2. Search will boost/increase weighted field(s) relevancy
[% FOREACH search_field IN all_search_fields %] [% END %]
Name Aliases Label Type Weight Searchable
  Staff interface OPAC
[% IF search_field.mandatory %] [% ELSE %] [% END %] [% search_field.aliases.join(', ') | html %] [% IF search_field.mandatory %] [% ELSE %] [% END %] [% IF search_field.mandatory %] [% END %] [% IF search_field.type == "string" %] [% ELSE %] [% END %] [% IF search_field.type == "date" %] [% ELSE %] [% END %] [% IF search_field.type == "year" %] [% ELSE %] [% END %] [% IF search_field.type == "number" %] [% ELSE %] [% END %] [% IF search_field.type == "boolean" %] [% ELSE %] [% END %] [% IF search_field.type == "sum" %] [% ELSE %] [% END %] [% IF search_field.type == "isbn" %] [% ELSE %] [% END %] [% IF search_field.type == "stdno" %] [% ELSE %] [% END %] [% IF search_field.type == "callnumber" %] [% ELSE %] [% END %] [% IF search_field.mapped_biblios %] [% ELSE %] [% END %]
[% FOREACH index IN indexes %]
[% FOREACH mapping IN index.mappings %] [% IF mapping.search_field_mandatory && mapping.search_field_label != loop.next.search_field_label && mapping.search_field_label != loop.prev.search_field_label %] [% ELSE %] [% IF mapping.search_field_mandatory %] [% ELSE %] [% END %] [% END %] [% END %]
Search field Sortable Facetable Suggestible Searchable Mapping  
[% mapping.search_field_label | html %] [% IF mapping.sort == 0 %] No [% ELSE %] Yes [% END %] [% IF mapping.facet == 1 %]Yes[% ELSE %]No[% END %] [% IF mapping.suggestible == 1 %]Yes[% ELSE %]No[% END %] [% IF mapping.search == 1 %]Yes[% ELSE %]No[% END %]  
[% mapping.search_field_label | html %] [% IF mapping.is_facetable %] [% ELSE %] No [% END %] Delete Delete
Add
[% IF index.index_name == 'biblios' %]

Facet order

[% FOREACH f IN facetable_fields %] [% END %]
Search field Label Display
[% f.name | html %] [% SWITCH f.name %] [% CASE 'author' %]Authors [% CASE 'itype' %]Item types [% CASE 'location' %]Locations [% CASE 'su-geo' %]Places [% CASE 'title-series' %]Series [% CASE 'subject' %]Topics [% CASE 'ccode' %]Collections [% CASE 'holdingbranch' %]Holding libraries [% CASE 'homebranch' %]Home libraries [% CASE 'ln' %]Language [% CASE %][% f | html %] [% END %] [% IF f.facet_order %] [% ELSE %] [% END %]
[% END %]
[% END %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'datatables.inc' %] [% Asset.js("lib/jquery/plugins/jquery.tablednd.js") | $raw %] [% Asset.js("js/elasticsearch-mappings.js") | $raw %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]