It doesn't look like the elasticsearch-py API covers the river use case. 
When I've run into things like this I've always just run a manual CURL 
request, or if I need to do it from within a script I just do a basic 
command with requests, ala
requests.put("http://localhost:9200/_river/mydocs/_meta"; data='{"type": 
"fs", "fs": {  "url": "/tmp",  "update_rate": 900000,  "includes": 
"*.doc,*.pdf", "excludes": "resume" }}')
Not the most elegant approach, but it works!

On Thursday, March 13, 2014 1:57:55 PM UTC-7, Kent Tenney wrote:
>
> From the fsriver doc: 
>
> curl -XPUT 'localhost:9200/_river/mydocs/_meta' -d '{ 
>   "type": "fs", 
>   "fs": { 
>      "url": "/tmp", 
>      "update_rate": 900000, 
>      "includes": "*.doc,*.pdf", 
>      "excludes": "resume" 
>    } 
> }' 
>
> How does this translate to the Python API? 
>
> Thanks, 
> Kent 
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/c9d25008-fe3d-43dc-a57f-e8e510f8a3ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to