]> git.koha-community.org Git - koha.git/commit
Bug 20607: Make Koha::SearchEngine::Elasticsearch::reset_elasticsearch_mappings take...
authorAlex Arnaud <alex.arnaud@gmail.com>
Tue, 24 Apr 2018 13:10:38 +0000 (13:10 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 19 Jul 2019 09:11:18 +0000 (10:11 +0100)
commitd8830da219f110aabd28fb65bd03bc882b847173
tree50de42270ea28d4019e5f2c9f91eb76e00fb28eb
parentcca82cc6d04a7070688fe7a3d7d55cf385ae2502
Bug 20607: Make Koha::SearchEngine::Elasticsearch::reset_elasticsearch_mappings take weight into account

Test plan:
  - apply this patch,
  - edit admin/searchengine/elasticsearch/mappings.yaml
    to add weight for some fields,
  - go to admin > search engine configuration,
  - reset your mappings (add ?op=reset&i_know_what_i_am_doing=1 to url),
  - check that weights you've added are set

Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/SearchEngine/Elasticsearch.pm
t/db_dependent/Koha/SearchEngine/Elasticsearch/Reset.t [new file with mode: 0644]