elasticsearch搜索返回结果根据百分比返回

{
"size": 20,
"query": {
"bool": {
"should": [
{
"term": {
"type": "computer"
}
},
{
"term": {
"type": "book"
}
},
{
"term": {
"type": "fruit"
}
}
]
}
}
}
请教个问题,有上面这样的query,我想指定computer匹配到的数据占所有20条中的50%,book匹配到的数据占所有20条中的30%,fruit占20%,ES有这种功能吗?

https://blog.csdn.net/afeiqiang/article/details/82999962

遇到同样的问题,有什么解决方案吗?