Elasticsearch River for Elasticsearch
Welcome to the Elasticsearch River Plugin for Elasticsearch
Getting Started
Installation
Just type :
$ bin\plugin -install dadoonet/esriver/0.0.1
This will do the job…
-> Installing dadoonet/esriver/0.0.1... Trying https://github.com/downloads/dadoonet/esriver/rssriver-0.0.1.zip... Downloading ...DONE Installed esriver
Creating an Elasticsearch river
TODO
We create first an index to store all the documents
:
$ curl -XPUT 'localhost:9200/escopy/' -d '{}'
We create the river with the following properties :
- ES Source URL : http://localhost:9200/
$ curl -XPUT 'localhost:9200/_river/escopy/_meta' -d '{ "type": "es", "es": { "url": "http://localhost:9200/" } }'
Working with mappings
When you create your index, you can specify the mapping you want to use as follow :
$ curl -XPUT 'http://localhost:9200/escopy/' -d ' $ curl -XPUT 'http://localhost:9200/escopy/page/_mapping' -d '{ "page" : { "properties" : { "title" : {"type" : "string", "analyzer" : "french"}, "description" : {"type" : "string", "analyzer" : "french"}, "author" : {"type" : "string"}, "link" : {"type" : "string"} } } }'
Then, your feed will use it when you create the river :
$ curl -XPUT 'localhost:9200/_river/lefigaro/_meta' -d '{ "type": "rss", "rss": { "url": "http://rss.lefigaro.fr/lefigaro/laune" } }'
Behind the scene
TODO
To Do List
Many many things to do :
TODO