curl -H "Content-Type: application/json" -XPOST http://node2:9200/blog/_mapping -d' { "properties": { "id": { "type": "long", "store": "true", "index": "true" }, "first_name": { "type": "text", "store": "true", "analyzer": "ik_max_word" }, "about": { "type": "text", "store": "true", "analyzer": "ik_max_word" }, "interests": { "type": "text", "store": "true", "analyzer": "ik_max_word" } } }' curl -H "Content-Type: application/json" -XPOST http://node2:9200/blog/_doc/2 -d ' { "first_name" : "bin", "age" : 33, "about" : "I love to go rock climbing", "interests": [ "sports", "music" ] }'