elastic templateMongoDB与Elasticsearch配置模板
弹性模板使用MongoDB和Spring Data配置弹性搜索的简单模板安装:
- 安装Elasticsearch:
```
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-1.1.0.deb
sudo dpkg -i elasticsearch-1.1.0.deb
sudo service elasticsearch start
```
- 验证是否安装成功:
```
curl $ES_HOME/bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/1.6.0
curl $ES_HOME/bin/plugin --install com.github.richardwilly98.elasticsearch/elasticsearch-river-mongodb/2.0.0
```
一般ES_HOME路径为/usr/share/elasticsearch
(可通过whereis elastic
查找)
- 创建最合适的索引:
```
curl -XPUT \"localhost:9200/_river/\"
```
下载地址
用户评论