Skip to content

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

Open
koetsier wants to merge 8 commits intomainfrom
update_es_client
Open

Bump the Elasticsearch client gem to version 7.10.x.#3548
koetsier wants to merge 8 commits intomainfrom
update_es_client

Conversation

@koetsier
Copy link
Copy Markdown
Contributor

@koetsier koetsier commented Mar 24, 2026

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

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.
…7.10 client.

The Elasticsearch client gem has been updated and now issues POST
requests for search operations instead of GET.
When updating a mapping, the Elasticsearch client may now use either
of the following endpoint formats:

$HOSTNAME/{index}/_mapping/{type}
$HOSTNAME/{index}/{type}/_mappings

Both URL patterns are supported by Elasticsearch 6.8.
… 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
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.
Elasticsearch 7+ does not allow nested 'should' queries
@hannako
Copy link
Copy Markdown
Contributor

hannako commented Apr 2, 2026

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!

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