elasticdsl
elasticdsl copied to clipboard
Prototype of an aggs parser handle.
This is more of a proposal than anything and I don't intend for a merge into master
, at least not withstanding major polishing. Here's my little toy code for playing with aggs
parsers. It's not recursive, which would be nice to have. @sckott as you'll see there's a departure from your structure. I'm a bit of a newcomer to lazy evaluation, so I'm sure that I'm missing important features. Comments are appreciated!
I think it might be nice to shoot for a syntax like,
aggs(my_statistic = mean(decimalLatitude))
aggs(my_statistics = quantile(decimalLatitude))
aggs(my_terms = terms(play_name))
The challenge comes in with nesting ...
thanks! I'll have a look in the morning
for my own reference: http://adv-r.had.co.nz/dsl.html
Probably is good, But let me get the https://github.com/ropensci/elasticdsl/issues/6 sorted out first, then it'll be easier to play with this
:+1: One thing of mention re: last call, I think a verbose
option that would allow the end user see the call construction in json
could really help usability.
yeah, see #12