similarity (相似度模型)
curl -XPUT 'localhost:9200/my_index?pretty' -H 'Content-Type: application/json' -d'
{
"mappings": {
"my_type": {
"properties": {
"default_field": { #1
"type": "text"
},
"classic_field": {
"type": "text",
"similarity": "classic" #2
}
}
}
}
}
'Last updated