摘要:1、创建SpringBoot工程。 spring boot版本为2.2.6, 增加spring-boot-starter-data-elasticsearch <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.ap
阅读全文
posted @ 2020-05-05 16:16
|
|||
随笔分类 - V.ElsticSearch
摘要:1、创建SpringBoot工程。 spring boot版本为2.2.6, 增加spring-boot-starter-data-elasticsearch <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.ap
阅读全文
posted @ 2020-05-05 16:16
摘要:1、创建索引,定义mappings属性。 类型为keyword是不会被分词的。 index: 默认为true,设置为false,那么这个字段就不会被索引,不会被查询到。 创建好后,在http://localhost:9100/ 中查看索引的信息 类型为keyword,就不会被分词,如手机号,QQ号。
阅读全文
posted @ 2020-04-25 21:38
摘要:1、查看集群的健康情况 http://localhost:9200/_cluster/health/ 2、创建索引 index_temp 为索引名称 3、查看索引信息 4、查询所有索引 显示索引的详细信息 index: 索引名称 store.size 索引所占的存储空间 5、删除索引 DELETE
阅读全文
posted @ 2020-04-25 20:30
摘要:一、安装ElasticSearch 1、Widows下ElasticSearch的安装 下载ElasticSearch版本,我这里使用的是elasticsearch-7.6.2-windows-x86_64.zip 安装目录为:C:\Tools\elasticsearch\elasticsearch
阅读全文
posted @ 2020-04-25 20:01
摘要:1、Lucene, Solr, ElasticSearch的关系 Lucene是类库(Java开发) Solr基于lucene(Java开发) ES基于lucene (支持PB级别的查询 PB=1024T) 2、ES核心术语与数据库的对应 ES核心术语 数据库 索引index 表 类型type(7.
阅读全文
posted @ 2020-04-24 21:40
|
|||