Skip to content

Bump the Elasticsearch client gem to version 7.10.x. - #3548

Open
koetsier wants to merge 7 commits into
mainfrom
update_es_client
Open

Bump the Elasticsearch client gem to version 7.10.x.#3548
koetsier wants to merge 7 commits into
mainfrom
update_es_client

Conversation

@koetsier

@koetsier koetsier commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

Bump the Elasticsearch client gem to version 7.10.x.

We’re planning an upcoming upgrade of our cluster to 7.10, so this
change allows us to adopt the newer client early and ensure the codebase
remains compatible.

https://gov-uk.atlassian.net/browse/SCH-1868

@hannako

hannako commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

This looks good based on my reading of the docs, but it will be interesting to see how it fares on integration as it's hard to know for sure if we've missed anything!

@koetsier
koetsier force-pushed the update_es_client branch 2 times, most recently from 2696e45 to 7b43630 Compare April 29, 2026 09:11
@koetsier
koetsier force-pushed the update_es_client branch from 7b43630 to 953e2af Compare May 7, 2026 13:06
@koetsier
koetsier marked this pull request as draft May 7, 2026 13:06
@koetsier
koetsier force-pushed the update_es_client branch 3 times, most recently from 16184c9 to 015b0fe Compare June 8, 2026 16:41
@koetsier
koetsier force-pushed the update_es_client branch 5 times, most recently from 858d095 to d185bf5 Compare June 12, 2026 10:07
koetsier added 4 commits June 25, 2026 14:46
Elasticsearch 7+ does not allow nested 'should' queries
…7.10 client.

The Elasticsearch client gem has been updated and now issues POST
requests for search operations instead of GET.

# Conflicts:
#	spec/unit/elasticsearch_index_spec.rb
koetsier added 3 commits June 25, 2026 15:03
… client.

When performing a scroll search, the Elasticsearch client may now use
either of the following endpoint formats:

$HOSTNAME/_search/scroll/{scroll_id}?scroll=1m
$HOSTNAME/_search/scroll?scroll=1m&scroll_id={scroll_id}

Both URL patterns are supported by Elasticsearch 6.8.
Although _uid is still present in Elasticsearch 6.8, it is deprecated. All usages have
been updated to _id to ensure forward compatibility with future Elasticsearch versions.

Reference:
https://www.elastic.co/guide/en/elasticsearch/reference/6.8/mapping-uid-field.html

# Conflicts:
#	lib/tasks/export.rake
Use a fallback when doc['popularity'] is empty by applying
POPULARITY_OFFSET directly; otherwise add the offset to the existing
value.  This is necessary because Elasticsearch 7+ requires the
property to exist if accessed

popularity data is missing.
@koetsier
koetsier marked this pull request as ready for review July 23, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants