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