- case1
RequestError(400, u'parsing_exception', u'bool query does not support [sort]')
error format:
{
"query":{
"bool":{
"must":{},
"filter":{},
"sort":[]
}
}
}
right format:
{
"query":{
"bool":{
"must":{},
"filter":{}
}
},
"sort":[]
}
bool查询是一种复合查询方式,bool查询中不能包含sort,sort应该与query放在同一层。
- case2