摘要: 自定义mapping的api PUT test_index { "mappings": { #mappings关键字 "doc": { #type "properties": { #字段名称和类型的定义 "name":{ #字段名 "type": "keyword" #字段类型 }, "messag 阅读全文
posted @ 2018-07-20 17:42 卡布爱学习 阅读(19447) 评论(0) 推荐(1) 编辑
摘要: analyzer 分词器使用的两个情形: 1,Index time analysis. 创建或者更新文档时,会对文档进行分词2,Search time analysis. 查询时,对查询语句分词 指定查询时使用哪个分词器的方式有: - 查询时通过analyzer指定分词器 GET test_inde 阅读全文
posted @ 2018-07-20 16:49 卡布爱学习 阅读(56372) 评论(0) 推荐(1) 编辑