入门与索引 教程:Elasticsearch 教程 更新时间:2026-12-02 阅读:86 索引类似数据库,mapping 定义字段类型。本节要点PUT 创建索引mapping 定义字段text 用于全文检索代码示例PUT /articles { "mappings": { "properties": { "title": { "type": "text" }, "views": { "type": "integer" } } } } 上一篇返回列表 下一篇文档 CRUD