2020年3月17日

es 基础概念总结 —— 索引

摘要: 一、基本 CRUD 增 Index PUT /<index>/_doc/<_id> POST /<index>/_doc/ 查 Get GET <index>/_doc/<_id> 删 Delete DELETE /<index>/_doc/<_id> 改 Update POST /<index>/ 阅读全文

posted @ 2020-03-17 21:25 Lemo_wd 阅读(222) 评论(0) 推荐(0)

es 基础概念总结 —— 自定义分析器

摘要: 一、分析器 analyzer 包括 1.字符过滤器 character filter 比如去除HTML标记,或者转化“&”为“and” 2.分词器 tokenizer 比如按空格分词 3.词单元标准化过滤器 token filter 如大小写转换,去掉停用词,增加同义词 二、内置分析器 标准分析器 阅读全文

posted @ 2020-03-17 21:00 Lemo_wd 阅读(458) 评论(0) 推荐(0)

es 基础概念总结 —— 映射

摘要: 索引 index 创建索引 PUT test/_doc/1 { "count": 5, "date": "2015/09/02" } 查看索引 GET _cat/indices?v 发现当前索引状态为 yellow, 副本数 rep是 1。这是由于单机状态不需要设置副本,因此将其改成 0 就正常了。 阅读全文

posted @ 2020-03-17 09:41 Lemo_wd 阅读(446) 评论(0) 推荐(0)

导航