PUT /my_index/_mapping { "properties" : { "employee-id" : { "type" : "keyword", "index" : false } } } GET /my_index/_mapping GET /bank/_mapping PUT /newbank { "mappings": { "properties": { "account_number": { "type": "long" }, "address": { "type": "text" }, "age": { "type": "integer" }, "balance": { "type": "long" }, "city": { "type": "keyword" }, "email": { "type": "text" }, "employer": { "type": "text" }, "firstname": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } }, "gender": { "type": "text" }, "lastname": { "type": "text" }, "state": { "type": "text" } } } } GET /newbank/_mapping
PUT /my_index/_mapping
{
"properties" : {
"employee-id" : {
"type" : "keyword",
"index" : false
}
}
}GET /my_index/_mapping
GET /bank/_mapping
PUT /newbank
{
"mappings": {
"properties": {
"account_number": {
"type": "long"
},
"address": {
"type": "text"
},
"age": {
"type": "integer"
},
"balance": {
"type": "long"
},
"city": {
"type": "keyword"
},
"email": {
"type": "text"
},
"employer": {
"type": "text"
},
"firstname": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"gender": {
"type": "text"
},
"lastname": {
"type": "text"
},
"state": {
"type": "text"
}
}
}
}GET /newbank/_mapping
{ "newbank" : { "mappings" : { "properties" : { "account_number" : { "type" : "long" }, "address" : { "type" : "text" }, "age" : { "type" : "integer" }, "balance" : { "type" : "long" }, "city" : { "type" : "keyword" }, "email" : { "type" : "text" }, "employer" : { "type" : "text" }, "firstname" : { "type" : "text", "fields" : { "keyword" : { "type" : "keyword", "ignore_above" : 256 } } }, "gender" : { "type" : "text" }, "lastname" : { "type" : "text" }, "state" : { "type" : "text" } } } } }
{
"newbank" : {
"mappings" : {
"properties" : {
"account_number" : {
"type" : "long"
},
"address" : {
"type" : "text"
},
"age" : {
"type" : "integer"
},
"balance" : {
"type" : "long"
},
"city" : {
"type" : "keyword"
},
"email" : {
"type" : "text"
},
"employer" : {
"type" : "text"
},
"firstname" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
},
"gender" : {
"type" : "text"
},
"lastname" : {
"type" : "text"
},
"state" : {
"type" : "text"
}
}
}
}
}