[DOCS] Reformat has_parent query docs#44443
[DOCS] Reformat has_parent query docs#44443jrodewig merged 3 commits intoelastic:masterfrom jrodewig:has-parent-query
has_parent query docs#44443Conversation
|
Pinging @elastic/es-search |
|
Pinging @elastic/es-docs |
mayya-sharipova
left a comment
There was a problem hiding this comment.
thanks @jrodewig! This is a nice rework of this documentation.
| "term" : { | ||
| "tag" : "something" | ||
| } | ||
| "match_all" : {} |
There was a problem hiding this comment.
I am not sure what is the purpose of this has_parent query with "match_all" : {} query inside? Is it to retrieve all child docs (something that we warned against)? May be a better example would be to have a more specific query.
There was a problem hiding this comment.
That's a great point! I update the index setup and query examples with 31c720a.
Instead of match_all, it now uses a term query similar to the previous example.
| querying multiple indexes which might have different mappings. When set to | ||
| `false` (the default value) the query will throw an exception if the `type` | ||
| is not mapped. | ||
| If `false`, {es} ignores the relevance score of the parent document. |
There was a problem hiding this comment.
may be also mention here, that in the case of false, the child docs' scores will be equal to boost of has_parent query which defaults to 1.
|
Thanks so much for your review @mayya-sharipova. |
Rewrites the
has_parentquery to use the new query format.This creates separate sections for example requests, parameters, and notes.
This is part of #40977, an effort to standardize documentation for query types.
Before
Before image
After
After image