实现目标:根据status.isSticky 排序 并且添加条件用户id是311
GET /incantation_index/_search
{
"sort":[
{
"status.isSticky":{
"order":"desc",
"nested":{
"path":"status",
"filter":{
"term":{
"status.userId":{
"value":311,
"boost":1
}
}
}
}
}
}
]
}