Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix automatic tracking of collapse with docvalue_fields #110103

Merged

Conversation

benwtrent
Copy link
Member

There were some optimizations that broke collapse fields automatically being added to docvalue_fields during the fetch phase.

Consequently, users will get really weird errors like unsupported_operation_exception. This commit corrects the intended behavior of automatically including the collapse field in the docvalue_fields context during fetch if it isn't already included.

closes: #96510

@benwtrent benwtrent added >bug :Search/Search Search-related issues that do not fall into other categories auto-backport-and-merge Automatically create backport pull requests and merge when ready v8.15.0 v8.14.2 labels Jun 24, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Jun 24, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@elasticsearchmachine
Copy link
Collaborator

Hi @benwtrent, I've created a changelog YAML for you.

Copy link
Member

@kderusso kderusso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

summary: Fix automatic tracking of collapse with `docvalue_fields`
area: Search
type: bug
issues: []
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Add #96510 to issue list

@benwtrent benwtrent added the auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Jun 25, 2024
@benwtrent
Copy link
Member Author

@elasticmachine update branch

@elasticsearchmachine
Copy link
Collaborator

Hi @benwtrent, I've updated the changelog YAML for you.

@elasticsearchmachine elasticsearchmachine merged commit 9e57ac4 into elastic:main Jun 25, 2024
15 checks passed
@benwtrent benwtrent deleted the fix-weird-collapse-doc-value-error branch June 25, 2024 17:03
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.14

benwtrent added a commit to benwtrent/elasticsearch that referenced this pull request Jun 25, 2024
There were some optimizations that broke collapse fields automatically
being added to `docvalue_fields` during the fetch phase. 

Consequently, users will get really weird errors like
`unsupported_operation_exception`. This commit corrects the intended
behavior of automatically including the collapse field in the
docvalue_fields context during fetch if it isn't already included.

closes: elastic#96510
benwtrent added a commit that referenced this pull request Jun 26, 2024
…10154)

There were some optimizations that broke collapse fields automatically
being added to `docvalue_fields` during the fetch phase. 

Consequently, users will get really weird errors like
`unsupported_operation_exception`. This commit corrects the intended
behavior of automatically including the collapse field in the
docvalue_fields context during fetch if it isn't already included.

closes: #96510
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport-and-merge Automatically create backport pull requests and merge when ready auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >bug :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v8.14.2 v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unsupported_operation_exception on collapse + docvalue_fields
4 participants