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