boost(提升)权重
curl -XPUT 'localhost:9200/my_index?pretty' -H 'Content-Type: application/json' -d'
{
"mappings": {
"my_type": {
"properties": {
"title": {
"type": "text",
"boost": 2 # 1
},
"content": {
"type": "text"
}
}
}
}
}
'Last updated