Welcome to the FS River Plugin for Elasticsearch
FS River Plugin | ElasticSearch | Attachment Plugin |
---|---|---|
master (0.0.1) | 0.19.4 | 1.4.0 |
Just type :
$ bin\plugin -install dadoonet/fsriver/0.0.1-SNAPSHOT
This will do the job…
-> Installing dadoonet/fsriver/0.0.1... Trying https://github.com/downloads/dadoonet/fsriver/fsriver-0.0.1-SNAPSHOT.zip... Downloading ...DONE Installed fsriver
We create first an index to store our documents
:
$ curl -XPUT 'localhost:9200/mydocs/' -d '{}'
We create the river with the following properties :
- FS URL : /tmp
- Update Rate : every 15 minutes (15 * 60 * 1000 = 900000 ms)
$ curl -XPUT 'localhost:9200/_river/mydocs/_meta' -d '{ "type": "fs", "fs": { "fs" : [ { "name": "My tmp dir", "url": "/tmp", "update_rate": 900000 } ] } }'