PUT /test
{
"mappings": {
"test_type": {
"properties": {
"birthday":{
"type": "text"
, "analyzer": "english"
},
"company":{
"type": "text"
},
"hobby":{
"type": "text"
}
}
}
}
}
GET /test_index/test_type/3
PUT /test/test_type/1
{
"birthday":"2018-08-01",
"company":"liufangyun",
"hobby":"basketball"
}
GET /test/_analyze
{
"field": "birthday",
"text": "a dog"
}
GET /test/_mapping/test_type