Querying with parent id has changed in ES v5
This commit is contained in:
committed by
Jason Veatch
parent
3401b21f1c
commit
b46f7e74e6
+2
-7
@@ -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': [
|
||||
|
||||
Reference in New Issue
Block a user