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

Do not filter source if exclude contains * #108501

Merged
merged 2 commits into from May 10, 2024
Merged

Conversation

iverase
Copy link
Contributor

@iverase iverase commented May 10, 2024

Filter source triggers the serialization of source as a map of maps if it has not been done previously. If we know that we are going to return nothing, this can be a pretty expensive memory wise operation. Therefore let's try to be clever and just create an empty source if we have the wildcard * on the excludes as we know the result is empty.

@iverase iverase added >non-issue :Search/Search Search-related issues that do not fall into other categories v8.15.0 labels May 10, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label May 10, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@iverase iverase merged commit 7ed58e7 into elastic:main May 10, 2024
15 checks passed
@iverase iverase deleted the excludeStar branch May 10, 2024 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>non-issue :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants