提交/获取/获取字段->映射
提交/获取/获取字段映射
Put Mapping /提交映射
curl -XPUT 'localhost:9200/twitter ?pretty' -d' # 1
{
"mappings": {
"tweet": {
"properties": {
"message": {
"type": "text"
}
}
}
}
}'
curl -XPUT 'localhost:9200/twitter/_mapping/user ?pretty' -d' # 2
{
"properties": {
"name": {
"type": "text"
}
}
}'
curl -XPUT 'localhost:9200/twitter/_mapping/tweet ?pretty' -d' # 3
{
"properties": {
"user_name": {
"type": "text"
}
}
}'Multi-index /多索引
Updating field mappings/更新字段映射
Conflicts between fields in different types/多字段/类型的冲突
Get Mapping /获取映射
Multiple Indices and Types
Get Field Mapping /获取字段映射
多个索引,类型和字段
具体说明:
其他选项
Last updated