Elasticsearch 学习笔记

官网
下载

安装部署(Centos7.x)

  1. 下载wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.4.2-linux-x86_64.tar.gz
  2. 修改系统 ulimit 参数
  3. 启动

集群

ES的集群设置比较简单,只需要在配置文件中加上

集群优化配置

概念 说明
todo todo

Type概念在ES7.x版本已经去掉了

ES MySQL
Index(索引) DataBase(数据库)
Type(类型) Table(表)
Document(文档) Row(行)
Field(字段) Column(列)
Mapping(映射) Schema(约束)
存储的都是索引 Index(索引)
Query DSL SQL

创建index

{
    "settings": {
        "index": {
            "analysis.analyzer.default.type": "ik_max_word"
        }
    }
}

ES rest-apis

# 查看所有Index信息
GET /_cat/indices?v
# 查看指定Index信息
GET /_cat/indices/<index>?v

插件使用

todo

插件开发

todo

原文地址:https://www.cnblogs.com/CSunShine/p/11810744.html