diff --git a/Joining Queries/querying-child-documents-by-parent.md b/Joining Queries/querying-child-documents-by-parent.md index efe6e17..2c4a06c 100644 --- a/Joining Queries/querying-child-documents-by-parent.md +++ b/Joining Queries/querying-child-documents-by-parent.md @@ -9,8 +9,8 @@ GET /department/_search "has_parent": { "parent_type": "department", "query": { - "term": { - "name.keyword": "Development" + "match": { + "name": "Development" } } } @@ -28,11 +28,11 @@ GET /department/_search "parent_type": "department", "score": true, "query": { - "term": { - "name.keyword": "Development" + "match": { + "name": "Development" } } } } } -``` \ No newline at end of file +```