]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 8 Aug 2019 09:45:37 +0000 (11:45 +0200)
commitd21a1fb964d26192977bb0ba5145906b8a1a31cb
tree094b14e7856f0dbde47c31b583922a60006785a7
parentbb6e73c5babc0d5566a6be77a98e621082eb8bd4
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>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
admin/searchengine/elasticsearch/mappings.yaml
t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t