# 创建索引 PUT /my_index { "mappings": { "properties": { "title": { "type": "text" }, "content": { "type": "text" } } } } # 添加文档 POST /my_index/_doc { "title": "示例标题", "content": "示例内容" }