AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
# 建立映射 **我们可以在创建索引时设置mapping信息,也可以先创建索引然后再设置mapping** 一个表下面3个字段,还有每个字段的属性 article表properties,title,content字段 ~~~ PUT blog1 { "mappings": { "article": { "properties": { "id": { "type": "long", "store": true }, "title": { "type": "text", "store": true, "index": true, "analyzer": "standard" }, "content": { "type": "text", "store": true, "index": true, "analyzer": "standard" } } } } } ~~~ 查看下 ~~~ GET /blog1 ~~~ ~~~ POST /blog/hello/_mapping { "hello": { "properties": { "id": { "type": "long", "store": true }, "title": { "type": "text", "store": true, "index": true, "analyzer": "standard" }, "content": { "type": "text", "store": true, "index": true, "analyzer": "standard" } } } } ~~~