标签:guid important 设置 tty mat content not row wrap
In Prioritizing Clauses, we explained how you could use the boost
parameter at search time to give one query clause more importance than another. For instance:
GET /_search
{
"query": {
"bool": {
"should": [
{
"match": {
"title": {
"query": "quick brown fox",
"boost": 2
}
}
},
{
"match": {
"content": "quick brown fox"
}
}
]
}
}
}
The |
|
A query clause without a |
转自:https://www.elastic.co/guide/en/elasticsearch/guide/current/query-time-boosting.html
ES设置字段搜索权重——Query-Time Boosting
标签:guid important 设置 tty mat content not row wrap
原文地址:http://www.cnblogs.com/bonelee/p/6475896.html