Querying with parent id has changed in ES v5

This commit is contained in:
Jason Veatch
2016-12-01 14:17:44 -05:00
committed by Jason Veatch
parent 3401b21f1c
commit b46f7e74e6
+2 -7
View File
@@ -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': [