Files
elasticsearch-js/docs/reference/api/QueryDslHasChildQuery.md
2025-05-27 15:30:21 -05:00

12 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## Interface `QueryDslHasChildQuery`
| Name | Type | Description |
| - | - | - |
| `ignore_unmapped` | boolean | Indicates whether to ignore an unmapped `type` and not return any documents instead of an error. |
| `inner_hits` | [SearchInnerHits](./SearchInnerHits.md) | If defined, each search hit will contain inner hits. |
| `max_children` | [integer](./integer.md) | Maximum number of child documents that match the query allowed for a returned parent document. If the parent document exceeds this limit, it is excluded from the search results. |
| `min_children` | [integer](./integer.md) | Minimum number of child documents that match the query required to match the query for a returned parent document. If the parent document does not meet this limit, it is excluded from the search results. |
| `query` | [QueryDslQueryContainer](./QueryDslQueryContainer.md) | Query you wish to run on child documents of the `type` field. If a child document matches the search, the query returns the parent document. |
| `score_mode` | [QueryDslChildScoreMode](./QueryDslChildScoreMode.md) | Indicates how scores for matching child documents affect the root parent documents relevance score. |
| `type` | [RelationName](./RelationName.md) | Name of the child relationship mapped for the `join` field. |