Description Usage Arguments Value
Elastic query results are returned as a complex nested list that is
reasonably well-structured but a pain to parse. The basic Search
function of elastic has a flag, asdf
, to return the
results as a data.frame, but there is no generic function to extract the
data.frame. This function is tailored to the esadocs index, used in testing,
which includes a field (Scientific_Name) that is an array in elasticsearch
(list in R) and doesn't coerce to a single variable just using
as.data.frame(res)
.
1 | result_asdf(res)
|
res |
An elasticsearch query result |
A data.frame of document results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.