curl -XPUT 'http://127.0.0.1:9200/test/?pretty=1' -d '
{
"mappings" : {
"test" : {
"properties" : {
"foo" : {
"index_analyzer" : "whitespace",
"type" : "string"
}
}
}
}
}
'
curl -XGET 'http://127.0.0.1:9200/test/test/_mapping?pretty=1'
# {
# "test" : {
# "properties" : {
# "foo" : {
# "type" : "string",
# "analyzer" : "whitespace"
# }
# }
# }
# }