$ curl -XPUT 'http://localhost:9200/{index}/_mapping/{type}' -d '
{
"{type}" : {
"properties" : {
"{field}" : {
"type" : "{string | date | double | long | boolean}",
"index" : "no"
}
}
}
}
'