Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | Email

第 26 章 Elasticsearch

目錄

26.1. 安裝 Elasticsearch
26.2. 文檔API
26.2.1. 快速上手
26.2.2. 寫入 PUT/POST
26.2.3. 獲取 GET
26.2.3.1. _source
26.2.4. 檢查記錄是否存在
26.2.5. 刪除 Delete
26.2.6. 參數
26.2.6.1. pretty 格式化 json
26.3. 搜索
26.3.1. 分頁
26.3.2. 字元串搜索
26.3.3. Query DSL
26.3.3.1. match
26.3.3.2. multi_match
26.3.3.3. sort
26.3.3.4. _source
26.4. 中文分詞插件管理
26.4.1. 安裝插件
26.4.2. 創建索引
26.4.3. 刪除索引
26.4.4. 配置索引分詞插件
26.4.4.1. 測試分詞效果
26.5. 映射
26.5.1. 查看 _mapping
26.5.2. 刪除 _mapping
26.5.3. 創建 _mapping
26.5.4. 修改 _mapping
26.5.5. 數據類型
26.5.5.1. date
26.6. Alias management 別名管理
26.6.1. 查看索引別名
26.6.2. 創建索引別名
26.6.3. 修改別名
26.6.4. 刪除別名
26.7. Example
26.7.1. 新聞資訊應用案例
26.8. 安裝 Elasticsearch 2.3
26.8.1. RPM 安裝
26.8.2. YUM 安裝
26.8.3. 測試安裝是否正常
26.8.4. Plugin 插件管理
26.8.4.1. 手工安裝插件
26.8.4.2. plugin 命令
26.8.4.3. 插件測試
26.9. FAQ
26.9.1. Plugin [analysis-ik] is incompatible with Elasticsearch [2.3.5]. Was designed for version [2.3.4]
26.9.2. mapper_parsing_exception: failed to parse [ctime]

http://www.elasticsearch.org/

26.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