]> git.koha-community.org Git - koha.git/commit
Bug 27770: ES: Deprecated aggregation order key [_term] used, replaced by [_key] 19.11.x
authorKevin Carnes <kevin.carnes@ub.lu.se>
Tue, 8 Feb 2022 13:35:18 +0000 (14:35 +0100)
committerWainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
Wed, 18 May 2022 23:06:27 +0000 (23:06 +0000)
commitef98fbfb627c12456cf316426cbe2d3d9f1305f9
treeb20d1f3fe391738a186a22ba65688b8aad7dcae1
parentb32611ab55adc0a8fe249b3a1b5d7174f19c7d24
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>
(cherry picked from commit 2cd93d8ea6cab9ba189fc6946ddf1e1fd3619067)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t