# Elasticsearch river settings

**URL:** <https://discuss.elastic.co/t/elasticsearch-river-settings/6718>\
**Category:** Elasticsearch\
**Created:** [February 15, 2012, 5:36pm UTC](https://discuss.elastic.co/t/elasticsearch-river-settings/6718 "2012-02-15T17:36:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssabat2000](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@ssabat2000](https://discuss.elastic.co/u/ssabat2000)\
**Post date:** [February 15, 2012, 5:36pm UTC](https://discuss.elastic.co/t/elasticsearch-river-settings/6718/1 "2012-02-15T17:36:05Z")

</div>

Hi,

I'm very new to Elasticsearch and I'm still discovering all the possibilities.  
For now my main concern is setting up a river (the rssriver from dadoonet, for example)

I have installed the plugin and run elasticsearch, this part is ok.

Now, would it be possible to include the following instructions into a conf file and how? I'm as much struggling with the syntax as with the settings, I confess. Or maybe some shell script would be more suitable?

$ curl -XPUT '[http://localhost:9200/lefigaro/](http://localhost:9200/lefigaro/)' -d '{}'

$ curl -XPUT '[http://localhost:9200/lefigaro/page/\_mapping](http://localhost:9200/lefigaro/page/_mapping)' -d '{  
"page" : {  
"properties" : {  
"title" : {"type" : "string", "analyzer" : "french"},  
"description" : {"type" : "string", "analyzer" : "french"},  
"author" : {"type" : "string"},  
"link" : {"type" : "string"}  
}  
}  
}'

$ curl -XPUT 'localhost:9200/\_river/lefigaro/\_meta' -d '{  
"type": "rss",  
"rss": {  
"feeds" : [ {  
"name": "lefigaro",  
"url": "[http://rss.lefigaro.fr/lefigaro/laune](http://rss.lefigaro.fr/lefigaro/laune)",  
"update\_rate": 900000  
}  
]  
}  
}'

Thanks in advance  
Regards,

Sébastien Sabat

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:39am UTC](https://discuss.elastic.co/t/elasticsearch-river-settings/6718/2 "2017-07-06T03:39:12Z")

</div>


