Elasticsearch Data Analysis with R

At ropensci conf right now - will get to this soon - thanks for your question

Hi Sckott,
Can you kindly look into the issue as soon as you can. I am a bit stuck in
my project due to this issue.
Thanks. Your help will be greatly appreciated.

Yes, you probably want aggregations - and probably within that want metrics aggregations - but check to make sure.

There’s examples of doing aggregation queries in the docs for elastic::Search

Did you try the parameter asdf - it attempts to coerce output to a data.frame, and is likely to be useful when doing aggregations

Hello, reviving after 6 years of inactivity. I would like to use scroll function to pull documents from my index, as:
total_hits ← res$hits$total$value
returns almost 2 millions.
However, I cannot access scroll_id, when using line from the documentation:
scroll_id ← res$_scroll_id
scroll_id is NULL. Will appreciate any help.

I’d recommend asking the question in the elastic repo, where there are new contributors: GitHub - ropensci/elastic: R client for the Elasticsearch HTTP API