doc_values(文档值)
curl -XPUT 'localhost:9200/my_index?pretty' -H 'Content-Type: application/json' -d'
{
"mappings": {
"my_type": {
"properties": {
"status_code": { # 1
"type": "keyword"
},
"session_id": { # 2
"type": "keyword",
"doc_values": false
}
}
}
}
}
'Last updated