]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 22 Feb 2022 01:15:47 +0000 (15:15 -1000)
commit1bfcb995554c61adc56391b07c0eb4d9d3a5fdba
tree8fc267fb1b910f9f7b12c06a55a57bc16c9964ce
parent10e657e8b7e59364ea04a3bd31f6ac771bf2dddc
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>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t