GET /my_index/_search
{
"query": {
"bool": {
"should": [
{ "match": {
"email": {
"query": "lisi@mail.hisense.com.cn",
"boost": 1888
}
}},
{ "match": {
"email": {
"query": "zhengwenqiang@mail.hisense.com.cn",
"boost": 1
}
}}
]
}
}
}
explain的用法
GET /my_index/_search
{
"query": {
"bool": {
"should": [
{ "match": {
"email": {
"query": "lisi@mail.hisense.com.cn",
"boost": 1888
}
}},
{ "match": {
"email": {
"query": "zhengwenqiang@mail.hisense.com.cn",
"boost": 1
}
}}
]
}
},
"explain": true
}
ES权重boost查询
最新推荐文章于 2023-08-16 16:07:05 发布