]> git.koha-community.org Git - koha.git/commit
Bug 22524: Fix publication date and year search with Elasticsearch
authorEre Maijala <ere.maijala@helsinki.fi>
Tue, 16 Apr 2019 13:26:40 +0000 (16:26 +0300)
committerLucas Gass <lucas@bywatersolutions.com>
Sat, 31 Aug 2019 03:35:36 +0000 (03:35 +0000)
commit22585ec127f090975d7a0e2b15f426e73a6bc32e
tree56a8d6dc5c18cdca45d321c69b7a41a4fbf2ec42
parent05b8f0bfb68f52ed1192c11fe8fc59a43122509a
Bug 22524: Fix publication date and year search with Elasticsearch

Also fixes the mappings.yaml to use correct field name (left over issue from bug 19575), so reset mappings and reindex before testing.

Test plan:
1. Reset mappings and reindex biblios.
2. Check that tests in t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t pass.
3. Try that all of the following year range type work in publication date search and year limit in advanced search:
yyyy
yyyy-yyyy
-yyyy
yyyy-

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 2293e6597c69d55ce5916b7a31029f13d65d4fea)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit d21a1fb964d26192977bb0ba5145906b8a1a31cb)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
admin/searchengine/elasticsearch/mappings.yaml
t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t