初试 ElasticSearch

1、ElasticSearch 的概念

1.1分布式的搜索引擎和数据分析引擎

1.2 全文检索,结构化检索,数据分析

1.3对海量数据进行近实时的处理NRT(near realtime)插入数据到搜索数据延迟大概在1s

 全文检索,  倒排索引

 lucene : 一个jar包,包含各种建立的倒排索引

ES封装了lucene提供了更多高级的支持,并且增加了分布式功能,自行保障高可用

2、ElasticSearch 与slor 等的比较

3、ElasticSearch 概念

dbs - > tables  - > rows -> columns 

indexes - > types -> documents - > fields 

3.1 索引index 

索引库,可以进行增删改查

3.2 类型type

3.3 字段fields

3.4  映射mapping 

类似于表结构的定义

3.5 文档documents 

3.6 集群 cluster

3.7 节点 node

3.8 分片和复制shards &replicas 

4、ES的使用

4.1创建索引,分片数和备份数

4.2 使用postment通过各种restful的接口进行对数据的增删改查

学习文章:

https://www.infoq.cn/article/database-timestamp-02/?utm_source=infoq&utm_medium=related_content_link&utm_campaign=relatedContent_articles_clk 

https://developer.51cto.com/art/201904/594615.htm

原文地址:https://www.cnblogs.com/yingchen/p/12148483.html