Es 是一個分佈式的。
Doug Cutting ()
Nutch 大數據不斷加大,開源
大數據的問題,存儲 和計算,根據論文可以寫出很多厲害的東西。
Lucene 是一套信息檢索工具包!,jar包!不包含搜索引擎系統!
包含的:索引結構!讀寫索引的工具!排序,搜索規則。
ElasticSearch 是基於Lucene 做了一些封裝和增強(我們上手是十分簡單!)
elasicSearch 下載地址: https://www.elastic.co/cn/downloads/elasticsearch
網盤中下載
esk 三劍客,減壓御用(Web 項目!前端環境)
window 下載安裝!
減壓就可以使用了
bin 1.啓動文件
2.熟悉目錄
config 配置文件
log4j2 日誌配置文件
jvm.options java 虛擬機相關的配置
elasticsearch.yml elasticsearch 的配置文件!默認9200 端口!跨域!
lib 相關jar包
logs 日誌!
modules 功能模塊
plgins 插件!jk
jvm 配置:如下圖:
訪問:9200
http://127.0.0.1:9200/
3. es 的客戶端工具-elasticsearch-head
下載地址:https://github.com/mobz/elasticsearch-head
下載後,
git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
npm install
npm run start
4. 在打開的頁面鏈接es 服務器,鏈接不上,報 CORS error ,
通過修改配置文件,
在配置下面添加如下配置:
http.cors.enabled: true
http.cors.allow-credentials: true
http.cors.allow-methods: OPTIONS,HEAD,GET,POST,PUT,DELETE
http.cors.max-age: 0
http.cors.allow-origin: "*"
http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type,Content-Length
重新啓動es 就ok 了。
5. kibana 安裝地址
地址路徑:
https://www.elastic.co/downloads/kibana
注意:kibana 的版本要和 ElasticSearch 這個的版本號一致,要不是鏈接不上的。
啓動,進入主目錄,執行如下命令:
./bin/kibana
6.ik 分詞器安裝
1. https://github.com/medcl/elasticsearch-analysis-ik
2.下載完畢之後,放入到我們ElasticSearch 下面的 plungis
7.kibana 操作ElasticSearch 使用:
https://www.elastic.co/guide/cn/elasticsearch/guide/current/_more_complicated_searches.html