{
"query": {
"has_child": {
"type": "dealer_opration",
"score_mode": "max",
"query": {
"function_score": {
"query": {
"bool": {
"must": [{
"term": {
"dealer_opration_dealer_id": 1
}
}]
}
},
"script_score": {
"script": "_score * doc['dealer_opration_count'].value"
}
}
}
}
},
"sort": [{
"_score": {
"order": "desc"
}
}]
}
我现在这里是根据子文档查询父文档
0 个回复