创建索引 创建一个名为my_index的索引 PUT localhost:9200/my_index 创建映射 PUT localhost:9200/my_index/my_type/_mapping { "properties": { "name": { "type": "text" } } } 添加一个文档 PUT localhost:9200/my_index/my_type/2 { "name": "李锋镝" } 查询: GET localhost:9200/my_index/my_type/2 { "_i…