AgileWorksOrg / elasticsearch-river-csv

CSV river for ElasticSearch
Apache License 2.0
91 stars 45 forks source link

Disable polling / run on demand #48

Closed rmoff closed 9 years ago

rmoff commented 9 years ago

This is awesome, thank you!

Is there a way to disable polling entirely, and instead trigger the river by an API call?

I'm guessing I can set poll to a long time period, but it feels a bit of a cheat ;-)

vtajzich commented 9 years ago

It's a plugin for ES, not an app. It's loaded as part of ES so it's not wise to expose some API. Use polling for this. Try to find value which fits your needs (10s, 5 mins, 2 days...)

rmoff commented 9 years ago

I meant something like this : https://github.com/jprante/elasticsearch-river-jdbc#suspend

It's no biggie, I can just delete/redefine the river as needed each time.

Thanks.