fielddata(字段数据)
text 字段默认关闭 Fielddata
在开启fielddata之前
curl -XPUT 'localhost:9200/my_index?pretty' -H 'Content-Type: application/json' -d'
{
"mappings": {
"my_type": {
"properties": {
"my_field": { # 1
"type": "text",
"fields": {
"keyword": { # 2
"type": "keyword"
}
}
}
}
}
}
}
'开启text 字段的fielddata
fielddata_frequency_filter
Last updated