include_in_all(_all 查询包含字段)
curl -XPUT 'localhost:9200/my_index?pretty' -H 'Content-Type: application/json' -d'
{
"mappings": {
"my_type": {
"properties": {
"title": { #1
"type": "text"
},
"content": { #2
"type": "text"
},
"date": { #3
"type": "date",
"include_in_all": false
}
}
}
}
}
'Last updated