]> git.koha-community.org Git - koha.git/commit
Bug 27770: ES: Deprecated aggregation order key [_term] used, replaced by [_key]
authorKevin Carnes <kevin.carnes@ub.lu.se>
Tue, 8 Feb 2022 13:35:18 +0000 (14:35 +0100)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 25 Feb 2022 13:30:36 +0000 (08:30 -0500)
commit2cd93d8ea6cab9ba189fc6946ddf1e1fd3619067
treec0abc50958eea33b03ae98310b1fdd534f3a57a0
parentcec300839b426f50457c42e1590c95a0d815306b
Bug 27770: ES: Deprecated aggregation order key [_term] used, replaced by [_key]

Starting in Elasticsearch 6.0 _key should be used instead of _term to order
buckets by their term

To test:
1) Run prove t/db_dependent/Koha/SearchEngine/Elasticsearch/Search.t
2) If you observe an error about types, apply patch for bug 25669
3) Run prove t/db_dependent/Koha/SearchEngine/Elasticsearch/Search.t
4) Observe if you get a deprecation warning about order key
5) Apply patch
6) Run prove t/db_dependent/Koha/SearchEngine/Elasticsearch/Search.t
7) Observe no deprecation warning about order key
8) Sign off

Sponsored-by: Lund University Library
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t