# Adding a river using the python driver

**URL:** <https://discuss.elastic.co/t/adding-a-river-using-the-python-driver/15607>\
**Category:** Elasticsearch\
**Created:** [February 4, 2014, 11:56pm UTC](https://discuss.elastic.co/t/adding-a-river-using-the-python-driver/15607 "2014-02-04T23:56:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mihnea\_Dobrescu\_Bala](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mihnea_dobrescu_bala/32/1738_2.png) [@Mihnea\_Dobrescu\_Bala](https://discuss.elastic.co/u/Mihnea_Dobrescu_Bala)\
**Post date:** [February 4, 2014, 11:56pm UTC](https://discuss.elastic.co/t/adding-a-river-using-the-python-driver/15607/1 "2014-02-04T23:56:55Z")

</div>

Hello,

I can't find how to add a river using the python driver.

I tried in various ways of calling es.index with '\_river' as an index but I  
couldn't find a way to add the "\_meta" document. The closest I got was an  
error from ES "no river \_meta document found after 5 attempts".

Can this be done? And if so, how?

Thanks,  
Mihnea

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/56180088-b96a-464a-8f81-c30bcff52b6d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/56180088-b96a-464a-8f81-c30bcff52b6d%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Honza\_Kral](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/honza_kral/32/876_2.png) [@Honza\_Kral](https://discuss.elastic.co/u/Honza_Kral)\
**Post date:** [February 5, 2014, 7:47am UTC](https://discuss.elastic.co/t/adding-a-river-using-the-python-driver/15607/2 "2014-02-05T07:47:02Z")

</div>

Hi Mihnea,

you can do any request outside of the dedicated api endpoints by  
calling `.transport.perform_request` on your Elasticsearch instance  
manually.

Hope this helps,  
Honza

On Wed, Feb 5, 2014 at 12:56 AM, Mihnea Dobrescu-Balaur  
[mihneadb@gmail.com](mailto:mihneadb@gmail.com) wrote:

> Hello,
> 
> I can't find how to add a river using the python driver.
> 
> I tried in various ways of calling es.index with '\_river' as an index but I  
> couldn't find a way to add the "\_meta" document. The closest I got was an  
> error from ES "no river \_meta document found after 5 attempts".
> 
> Can this be done? And if so, how?
> 
> Thanks,  
> Mihnea
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/56180088-b96a-464a-8f81-c30bcff52b6d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/56180088-b96a-464a-8f81-c30bcff52b6d%40googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CABfdDiovYCpY7j9vp47vye%3D66a8xxkgwVNCoj%3DbeuPa%3Dni2WSA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CABfdDiovYCpY7j9vp47vye%3D66a8xxkgwVNCoj%3DbeuPa%3Dni2WSA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Mihnea\_Dobrescu\_Bal1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mihnea_dobrescu_bal1/32/1786_2.png) [@Mihnea\_Dobrescu\_Bal1](https://discuss.elastic.co/u/Mihnea_Dobrescu_Bal1)\
**Post date:** [February 5, 2014, 2:40pm UTC](https://discuss.elastic.co/t/adding-a-river-using-the-python-driver/15607/3 "2014-02-05T14:40:45Z")

</div>

Hi Honza,

Thanks! I managed to do it with:

ES.transport.perform\_request(url='/\_river//\_meta', method='PUT',  
body=)

Mihnea

On Wed, Feb 5, 2014 at 9:47 AM, Honza Král [honza.kral@elasticsearch.com](mailto:honza.kral@elasticsearch.com) wrote:

> Hi Mihnea,
> 
> you can do any request outside of the dedicated api endpoints by  
> calling `.transport.perform_request` on your Elasticsearch instance  
> manually.
> 
> Hope this helps,  
> Honza
> 
> On Wed, Feb 5, 2014 at 12:56 AM, Mihnea Dobrescu-Balaur  
> [mihneadb@gmail.com](mailto:mihneadb@gmail.com) wrote:
> 
> > Hello,
> > 
> > I can't find how to add a river using the python driver.
> > 
> > I tried in various ways of calling es.index with '\_river' as an index but I  
> > couldn't find a way to add the "\_meta" document. The closest I got was an  
> > error from ES "no river \_meta document found after 5 attempts".
> > 
> > Can this be done? And if so, how?
> > 
> > Thanks,  
> > Mihnea
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/56180088-b96a-464a-8f81-c30bcff52b6d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/56180088-b96a-464a-8f81-c30bcff52b6d%40googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/CqhNqqKK4Jg/unsubscribe](https://groups.google.com/d/topic/elasticsearch/CqhNqqKK4Jg/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CABfdDiovYCpY7j9vp47vye%3D66a8xxkgwVNCoj%3DbeuPa%3Dni2WSA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CABfdDiovYCpY7j9vp47vye%3D66a8xxkgwVNCoj%3DbeuPa%3Dni2WSA%40mail.gmail.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Mihnea Dobrescu-Balaur

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGmmvXJDG0%2Bn7DPfbA%2Bp6W7zsUsJLtbp12JNP3NXyYMp8Es9ZQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGmmvXJDG0%2Bn7DPfbA%2Bp6W7zsUsJLtbp12JNP3NXyYMp8Es9ZQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 1:52am UTC](https://discuss.elastic.co/t/adding-a-river-using-the-python-driver/15607/4 "2017-07-06T01:52:25Z")

</div>


