-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[DOCS] Rewrite has_child query to use new format
#44190
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
Conversation
|
Pinging @elastic/es-docs |
|
Pinging @elastic/es-search |
cbuescher
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I left two suggestions but feel free to adress them at will.
| unique parent documents increases. Each `has_child` query in a search can | ||
| increase query time significantly. | ||
| If you care about query performance, do not use this query. If need to use the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
" If need" <- not a native speaker, but is there a verb missing? Or something else from the sentence?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You didn't miss anything. Just a typo. Should read If you need... Fixed with 164d716.
| `false` (the default value) the query will throw an exception if the `type` | ||
| is not mapped. | ||
| `max_children`:: | ||
| (integer) Optional. Maximum number of child documents allowed for returned parent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reading this I was wondering if "child documents" here means child documents that match the query condition. I might have missed that part, but maybe its worth clarifying.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarified with 6f4668e
Rewrites the
has_childquery to use the new query format.This is part of #40977, an effort to standardize documentation for query types.
Before
Before image
After
After image