Home | 简体中文 | 繁体中文 | 杂文 | 打赏(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Search | Email

第 61 章 Elasticsearch

目录

61.1. 安装 Elasticsearch
61.2. 文档API
61.2.1. 快速上手
61.2.2. 写入 PUT/POST
61.2.3. 获取 GET
61.2.3.1. _source
61.2.4. 检查记录是否存在
61.2.5. 删除 Delete
61.2.6. 参数
61.2.6.1. pretty 格式化 json
61.3. 搜索
61.3.1. 分页
61.3.2. 字符串搜索
61.3.3. Query DSL
61.3.3.1. match
61.3.3.2. multi_match
61.3.3.3. sort
61.3.3.4. _source
61.4. 中文分词插件管理
61.4.1. 安装插件
61.4.2. 创建索引
61.4.3. 删除索引
61.4.4. 配置索引分词插件
61.4.4.1. 测试分词效果
61.5. 映射
61.5.1. 查看 _mapping
61.5.2. 删除 _mapping
61.5.3. 创建 _mapping
61.5.4. 修改 _mapping
61.5.5. 数据类型
61.5.5.1. date
61.6. Alias management 别名管理
61.6.1. 查看索引别名
61.6.2. 创建索引别名
61.6.3. 修改别名
61.6.4. 删除别名
61.7. Example
61.7.1. 新闻资讯应用案例
61.8. 安装 Elasticsearch 2.3
61.8.1. RPM 安装
61.8.2. YUM 安装
61.8.3. 测试安装是否正常
61.8.4. Plugin 插件管理
61.8.4.1. 手工安装插件
61.8.4.2. plugin 命令
61.8.4.3. 插件测试
61.9. FAQ
61.9.1. Plugin [analysis-ik] is incompatible with Elasticsearch [2.3.5]. Was designed for version [2.3.4]
61.9.2. mapper_parsing_exception: failed to parse [ctime]

http://www.elasticsearch.org/

61.1. 安装 Elasticsearch

使用 Netkiller OSCM 一键安装 Elasticsearch 5.2

# Java
curl -s https://raw.githubusercontent.com/oscm/shell/master/lang/java/openjdk/java-1.8.0-openjdk.sh | bash

# Install
curl -s https://raw.githubusercontent.com/oscm/shell/master/search/elasticsearch/elasticsearch-5.2.sh | bash

# Bind 0.0.0.0
curl -s https://raw.githubusercontent.com/oscm/shell/master/search/elasticsearch/network.bind_host.sh | bash

# Auto create index
curl -s https://raw.githubusercontent.com/oscm/shell/master/search/elasticsearch/action.auto_create_index.sh | bash

# elasticsearch-analysis-ik

curl -s https://raw.githubusercontent.com/oscm/shell/master/search/elasticsearch/elasticsearch-analysis-ik-5.2.2.sh | bash