Koha-clms/Koha/SearchEngine
Julian Maurice a053c21385
Bug 33353: Add compatibility with Search::Elasticsearch 8.0
For some reasons, with Search::Elasticsearch 8.0 JSON::true is
interpreted as 1 and Elasticsearch will always respond that it found "at
least 1 record". Something like this:

{
    total => {
        value => 1,
        relation => 'gte'
    }
}

Replacing JSON::true by \1 works with every version of
Search::Elasticsearch I tested (6.80, 7.717, 8.0)

Also worth noting:
Search::Elasticsearch will stop being supported by Elastic
https://github.com/elastic/elasticsearch-perl/issues/220

We might need to find an alternative for future versions of
Elasticsearch

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Philip Orr <philip.orr@lmscloud.de>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2026-04-01 13:04:18 +13:00
..
Elasticsearch Bug 33353: Add compatibility with Search::Elasticsearch 8.0 2026-04-01 13:04:18 +13:00
Zebra Bug 31106: Make clean_search_term escape double quotes 2022-07-18 14:37:35 -03:00
Elasticsearch.pm Bug 33206: Bad title__sort made of multifield 245 2023-05-15 12:07:50 +00:00
Indexer.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
QueryBuilder.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
Search.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00