Koha/admin
Ere Maijala 133df5e912 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: Kyle M Hall <kyle@bywatersolutions.com>

Bug 20073: Move Elasticsearch yaml files back to admin directory

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-06-22 14:37:56 +00:00
..
searchengine/elasticsearch Bug 20073: Move Elasticsearch configs to yaml files and improve the default settings. 2018-06-22 14:37:56 +00:00
add_user_search.pl Bug 15758: Koha::Libraries - Remove GetBranches 2016-09-08 14:36:03 +00:00
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 Bug 19328: Internal server error because of missing currency 2017-10-11 13:05:31 -03:00
aqbudgets.pl Bug 18789: Send Koha::Patron object to the templates 2018-02-16 13:03:58 -03:00
aqcontract.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
aqplan.pl Bug 20201: Silence warnings triggered by admin/aqplan.pl 2018-02-27 12:12:57 -03:00
audio_alerts.pl Bug 16154: CGI->multi_param - Declare a list 2016-04-26 23:16:42 +00:00
auth_subfields_structure.pl Bug 12227: Remove the demo functionality 2017-12-11 11:34:20 -03:00
auth_tag_structure.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
authorised_values.pl Bug 18632: Remove 'CGI::param called in list context' warnings 2017-05-28 22:25:22 -04:00
authtypes.pl Bug 16012: Restore the ability to edit default authority type 2016-03-21 22:41:44 +00:00
biblio_framework.pl Bug 19096: Make Default authoritative in core modules 2017-12-07 14:44:15 -03:00
branch_transfer_limits.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
branches.pl Bug 16735: Migrate library search groups into the new hierarchical groups 2018-02-12 15:41:25 -03:00
categories.pl Bug 15758: Koha::Libraries - Remove GetBranches 2016-09-08 14:36:03 +00:00
check_budget_parent.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
check_parent_total.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
checkmarc.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
cities.pl Bug 14888: Update copyright and wording 2015-10-05 12:00:38 -03:00
classsources.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
clone-rules.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
columns_settings.pl Bug 16154: CGI->multi_param - Declare a list 2016-04-26 23:16:42 +00:00
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 Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
edi_accounts.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
edi_ean_accounts.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
fieldmapping.pl Bug 18269: Move field mappings related code to Koha::FieldMapping[s] 2017-03-31 10:20:00 +00:00
import_export_framework.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
item_circulation_alerts.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
items_search_field.pl Bug 15803: Koha::AuthorisedValues - Remove C4::Koha::GetAuthorisedValueCategories 2016-10-28 16:35:52 +00:00
items_search_fields.pl Bug 15803: Koha::AuthorisedValues - Remove C4::Koha::GetAuthorisedValueCategories 2016-10-28 16:35:52 +00:00
itemtypes.pl Bug 12768: Replacement cost and processing fee management 2017-10-20 17:14:33 -03:00
koha2marclinks.pl Bug 10306: (QA follow-up) More feedback for admins in koha2marclinks 2017-12-07 14:44:15 -03:00
library_groups.pl Bug 20157: Save the features that have been checked 2018-02-12 15:42:21 -03:00
localization.pl Bug 14100: Generic solution for language overlay - Item types 2015-10-27 12:34:06 -03:00
marc_subfields_structure.pl Bug 12227: Remove the demo functionality 2017-12-11 11:34:20 -03:00
marctagstructure.pl Bug 9701: Configure default indicator 2018-04-12 10:50:34 -03:00
matching-rules.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
oai_set_mappings.pl Bug 16154: CGI->multi_param - Declare a list 2016-04-26 23:16:42 +00:00
oai_sets.pl Bug 16154: CGI->multi_param - Declare a list 2016-04-26 23:16:42 +00:00
patron-attr-types.pl Bug 18632: Remove 'CGI::param called in list context' warnings 2017-05-28 22:25:22 -04:00
preferences.pl Bug 12227: Remove the demo functionality 2017-12-11 11:34:20 -03:00
printers.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
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 Bug 18934: Preventing warns in Admin -> SMS providers 2017-07-13 18:26:22 -03:00
sru_modmapping.pl Bug 6536: Add a form for SRU Field mapping 2014-09-01 10:08:50 -03:00
systempreferences.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
transport-cost-matrix.pl Bug 19992: use Modern::Perl in Admin perl scripts 2018-02-05 09:45:46 -03:00
usage_statistics.pl Bug 18066: Hea V2 2017-03-23 00:10:46 +00:00
z3950servers.pl Bug 16154: CGI->multi_param - Force scalar context 2016-04-26 23:16:43 +00:00