GET /_search
{
"query": {
"bool": {
"should": [
{
"match": {
"title": {
"query": "quick brown fox",
"boost": 2 //设置权重为2
}
}
},
{
"match": {
"content": "quick brown fox" //默认权重为1
}
}
]
}
}
}