ropensci / elastic

R client for the Elasticsearch HTTP API
https://docs.ropensci.org/elastic
Other
244 stars 58 forks source link

Feature request: Progress bar for queries #162

Closed kickbox closed 7 years ago

kickbox commented 7 years ago

@sckott I frequently query large data from ES through your plugin. However I am not able to see if the query is active/inactive or progressing. Can you please add a feature where we can track the data-download progress of the search?

Something like this could be handy in tracking the progress of the query -https://github.com/gaborcsardi/progress.

sckott commented 7 years ago

thanks for the issue, will have a look in the morning

sckott commented 7 years ago

I think the best way to do this that works across functions, is via httr::progress() - that can be passed in to most if not all elastic functions, e.g,

Search(config = progress(), size = 5000)

you have to pass it in with the named variable config

I'll add examples to the docs soon