Skip to content

Conversation

jimczi
Copy link
Contributor

@jimczi jimczi commented Oct 3, 2025

Backports the following commits to 9.2:

…astic#135897)

The inference fields is automatically retrieved when `exclude_vectors` is set to false.
In this change, we apply the source exclude early, in case the _inference_fields is removed, to avoid loading it entirely.
We also protect against immutable map when adding the _inference_fields in _source since we cannot ensure that the map is always mutable.
@jimczi jimczi added :Search Relevance/Search Catch all for Search Relevance >bug auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch labels Oct 3, 2025
@elasticsearchmachine elasticsearchmachine merged commit e641d40 into elastic:9.2 Oct 3, 2025
34 checks passed
@jimczi jimczi deleted the backport/9.2/pr-135897 branch October 3, 2025 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Search Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.2.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants