![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Elasticsearch
后端小哥
公众号:后端小哥
专注后端,希望和你一起进步!
展开
-
《Elasticsearch技术解析与实战》Chapter 1.1:Elasticsearch入门和倒排索引
1. 简介Elasticsearch是一个机遇Lucene构建的开源、分布式、RESTful接口全文搜索引擎。同时,Elasticsearch还是一个分布式文档数据库,能够扩展至数百个服务器存储以处理PB级数据,通常作为复杂搜索场景的首选利器。Elasticsearch的优点:横向可扩展性:只需要增加一台服务器,配置完毕即可加入集群。分片机制提供更好的分布性:同一个索引分成多个分片,类似...原创 2019-04-12 13:46:49 · 180 阅读 · 0 评论 -
《Elasticsearch技术解析与实战》Chapter 1.3 Elasticsearch增删改查
1. 新增文档,建立索引语法格式:PUT /index/type/id{ "json数据"}输入:PUT /person/chinese/1{ "id":12345, "name":"lujiahao", "age":18}输出:{ "_index": "person", "_type": "chinese", "_id": "1", "_v...原创 2019-04-15 21:49:10 · 136 阅读 · 0 评论 -
《Elasticsearch技术解析与实战》Chapter 1.4 Spring Boot整合Elasticsearch
1. spring-boot-starter-data-elasticsearch1.1 pom.xml和application.yml<!-- Spring Boot Elasticsearch 依赖 --><dependency> <groupId>org.springframework.boot</groupId> <...原创 2019-04-16 11:35:01 · 128 阅读 · 1 评论 -
《Elasticsearch技术解析与实战》Chapter 1.2 Elasticsearch安装
1. 下载安装1.1 下载https://www.elastic.co/downloads/elasticsearch下载 https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.7.0.tar.gz1.2 解压tar -zxvf elasticsearch-6.7.0.tar.gz1.3 运行cd...原创 2019-04-14 09:56:40 · 153 阅读 · 0 评论 -
《Elasticsearch技术解析与实战》Chapter 2.1 Elasticsearch索引增删改查
1. 创建索引PUT /lujiahao123{ "acknowledged": true, "shards_acknowledged": true}索引默认的主分片数量是5,每个主分片的副本数量是1。创建自定义字段类型的索引:PUT /order{ "settings": { "number_of_shards": 3, "number_of_repl...原创 2019-04-17 18:40:12 · 587 阅读 · 0 评论