diff --git a/example/queries.py b/example/queries.py index d487fcb8..3c12dc9f 100644 --- a/example/queries.py +++ b/example/queries.py @@ -60,13 +60,8 @@ result = es.search( doc_type='commits', body={ 'query': { - 'bool': { - 'must': { - 'term': { - # parent ref is stored as type#id - '_parent': 'repos#elasticsearch-py' - } - } + 'parent_id': { + 'type': 'commits', 'id': 'elasticsearch-py' } }, 'sort': [