Adding a river using the python driver


(Mihnea Dobrescu-Balaur) #1

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.
To view this discussion on the web visit 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.


(Honza Král) #2

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 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.
To view this discussion on the web visit
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.

--
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.
To view this discussion on the web visit 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.


(Mihnea Dobrescu-Balaur-2) #3

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 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 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.
To view this discussion on the web visit
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.

--
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.
To unsubscribe from this group and all its topics, send an email to 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.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGmmvXJDG0%2Bn7DPfbA%2Bp6W7zsUsJLtbp12JNP3NXyYMp8Es9ZQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #4