]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 6 Aug 2019 13:53:05 +0000 (15:53 +0200)
commita721c50e4f1752c1f102172135b48fc5887c053a
tree52d5e68703e30b2972df7b6437f53ec1e799f60d
parentc315ec1a1914b207766449aff497dfd293377cbd
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>
(cherry picked from commit d8830da219f110aabd28fb65bd03bc882b847173)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/SearchEngine/Elasticsearch.pm
t/db_dependent/Koha/SearchEngine/Elasticsearch/Reset.t [new file with mode: 0644]