Koha/admin
Ere Maijala f489d2034b Bug 20073: Move Elasticsearch configs to yaml files and improve the default settings.
Improvements:
1) Index settings moved from code to etc/searchengine/elasticsearch/index_config.yaml. An alternative can be specified in koha-conf.xml.
2) Field settings moved from code to etc/searchengine/elasticsearch/field_config.yaml. An alternative can be specified in koha-conf.xml.
3) mappings.yaml has been moved from admin/searchengine/elasticsearch to etc/searchengine/elasticsearch. An alternative can be specified in koha-conf.xml.
4) Default settings have been improved to remove punctuation from phrases used for sorting etc.
5) State variables are used for storing configuration to avoid parsing it multiple times.
6) A possibility to reset the fields too has been added to the reset operation of mappings administration.
7) mappings.yaml has been moved from admin/searchengine/elasticsearch to etc/searchengine/elasticsearch.
8) An stdno field type has been added for standard identifiers.

To test:
1) Run tests in t/Koha/SearchEngine/Elasticsearch.t
2) Clear tables search_fields and search_marc_map
3) Go to admin/searchengine/elasticsearch/mappings.pl?op=reset&i_know_what_i_am_doing=1
4) Verify that admin/searchengine/elasticsearch/mappings.pl displays the mappings properly, including ISBN and other standard number fields.
5) Index some records using the -d parameter with misc/search_tools/rebuild_elastic_search.pl to recreate the index
6) Verify that you can find the records
7) Put <elasticsearch_index_mappings>non_existent</elasticsearch_index_mappings> to koha-conf.xml
8) Verify that admin/searchengine/elasticsearch/mappings.pl?op=reset&i_know_what_i_am_doing=1 fails because it can't find non_existent.
9) Copy etc/searchengine/elasticsearch/mappings.yaml to a new location and make elasticsearch_index_mappings setting in koha-conf.xml point to it.
10) Make a change in the new mappings.yaml.
11) Clear table search_fields (mappings reset doesn't do it yet, see bug 20248)
12) Go to admin/searchengine/elasticsearch/mappings.pl?op=reset&i_know_what_i_am_doing=1
13) Verify that the changes you made are now visible in the mappings UI

Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2018-04-23 14:22:16 -03:00
..
searchengine/elasticsearch Bug 20073: Move Elasticsearch configs to yaml files and improve the default settings. 2018-04-23 14:22:16 -03:00
add_user_search.pl
admin-home.pl Bug 20383: Hide link to plugin management if plugins are not enabled 2018-03-19 13:55:53 -03:00
aqbudgetperiods.pl
aqbudgets.pl Bug 18789: Send Koha::Patron object to the templates 2018-02-16 13:03:58 -03:00
aqcontract.pl
aqplan.pl Bug 20201: Silence warnings triggered by admin/aqplan.pl 2018-02-27 12:12:57 -03:00
audio_alerts.pl
auth_subfields_structure.pl
auth_tag_structure.pl
authorised_values.pl
authtypes.pl Bug 16012: Restore the ability to edit default authority type 2016-03-21 22:41:44 +00:00
biblio_framework.pl
branch_transfer_limits.pl
branches.pl Bug 16735: Migrate library search groups into the new hierarchical groups 2018-02-12 15:41:25 -03:00
categories.pl
check_budget_parent.pl
check_parent_total.pl
checkmarc.pl
cities.pl
classsources.pl
clone-rules.pl
columns_settings.pl
columns_settings.yml Bug 19287: Add column action to columns settings 2018-04-23 12:56:05 -03:00
currency.pl Bug 4078: Add the checkbox to the UI 2018-03-23 11:45:38 -03:00
didyoumean.pl
edi_accounts.pl
edi_ean_accounts.pl
fieldmapping.pl
import_export_framework.pl
item_circulation_alerts.pl
items_search_field.pl
items_search_fields.pl
itemtypes.pl
koha2marclinks.pl
library_groups.pl Bug 20157: Save the features that have been checked 2018-02-12 15:42:21 -03:00
localization.pl
marc_subfields_structure.pl
marctagstructure.pl Bug 9701: Configure default indicator 2018-04-12 10:50:34 -03:00
matching-rules.pl
oai_set_mappings.pl
oai_sets.pl
patron-attr-types.pl
preferences.pl
printers.pl
smart-rules.pl Bug 19804: Add the new column to the circ rules interface 2018-04-09 16:15:19 -03:00
sms_providers.pl
sru_modmapping.pl
systempreferences.pl
transport-cost-matrix.pl
usage_statistics.pl
z3950servers.pl