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

Shrink slow log for has_child query #83870

Merged
merged 2 commits into from
Feb 14, 2022

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Feb 11, 2022

This removes the defaults from the toXContent of the has_child query
so slow logs that contain it are marginally easier to read.

Relates to #76515

@nik9000 nik9000 added >non-issue :Search/Search Search-related issues that do not fall into other categories v8.2.0 labels Feb 11, 2022
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Feb 11, 2022
@elasticmachine
Copy link
Collaborator

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

This removes the defaults from the `toXContent` of the `has_child` query
so slow logs that contain it are marginally easier to read.

Relates to elastic#76515
Copy link
Contributor

@romseygeek romseygeek left a comment

Choose a reason for hiding this comment

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

LGTM

checkGeneratedJson(query, queryBuilder);
checkGeneratedJson(
/*
* Ignoring unampped is the default and we don't dump it and can't
Copy link
Contributor

Choose a reason for hiding this comment

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

s/unampped/unmapped/

}
}""", parseQuery(query));
}

Copy link
Contributor

Choose a reason for hiding this comment

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

❤️ text blocks

@nik9000 nik9000 added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Feb 14, 2022
@elasticsearchmachine elasticsearchmachine merged commit 8906af2 into elastic:master Feb 14, 2022
@nik9000 nik9000 deleted the shorter_has_child branch February 14, 2022 19:41
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!) >non-issue :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v8.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants