]> git.koha-community.org Git - koha.git/commit
Bug 23670: Load Koha::Exceptions::ElasticSearch module in Koha::SearchEngine::Elastic...
authorNicolas Legrand <nicolas.legrand@bulac.fr>
Mon, 23 Sep 2019 16:27:32 +0000 (18:27 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 7 Oct 2019 12:00:05 +0000 (13:00 +0100)
commit12d33316918d6e333c670d0cc4a218bda2c964c6
treeaaed9f8c2785e48dd5b62285c2283284be02bd0e
parenta9d5147dfd26539dc13989d82faa54032ba26600
Bug 23670: Load Koha::Exceptions::ElasticSearch module in Koha::SearchEngine::Elasticsearch

Prevent Koha::SearchEngine::Elasticsearch from dying when trying to run
Koha::Exceptions::Elasticsearch::MARCFieldExprParseError->throw()

Plan test:

1. Go to Administration -> Searchengine configuration, and add a mapping
   for 995Z, whatever the search field (I did it with local-classification),
   save
2. run $KOHA_PATH/misc/search_tools/rebuild_elasticsearch.pl -v -d -b
3. see it die asking for Koha::Exceptions::Elasticsearch
4. apply patch
5. rerun $KOHA_PATH/misc/search_tools/rebuild_elasticsearch.pl -v -d -b
6. see it throw: Invalid MARC field expression: 995Z

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/SearchEngine/Elasticsearch.pm