Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

function for explaining what query will be performed #12

Open
sckott opened this issue Mar 1, 2016 · 4 comments
Open

function for explaining what query will be performed #12

sckott opened this issue Mar 1, 2016 · 4 comments
Assignees
Milestone

Comments

@sckott
Copy link
Contributor

sckott commented Mar 1, 2016

in readme, we have explain(), but doesn't exist yet (and conflicts with dplyr::explain()), working on describe() right now...

@sckott sckott self-assigned this Mar 1, 2016
@sckott sckott added this to the v0.1 milestone Mar 1, 2016
sckott added a commit that referenced this issue Mar 2, 2016
works for some, but likely will need more work to work in all cases
@sckott
Copy link
Contributor Author

sckott commented Mar 2, 2016

an example:

index("shakespeare") %>% range( speech_number <= 5 ) %>% describe
#> <elasticdsl query>
#>   base: http://127.0.0.1:9200
#>   index: shakespeare
#>   query: 
#> {
#>     "query": {
#>         "range": {
#>             "speech_number": {
#>                 "lte": "5"
#>             }
#>         }
#>     }
#> }

@statwonk
Copy link
Contributor

statwonk commented Mar 3, 2016

👏

statwonk pushed a commit to statwonk/elasticdsl that referenced this issue Mar 5, 2016
works for some, but likely will need more work to work in all cases
@statwonk
Copy link
Contributor

statwonk commented Apr 5, 2016

@sckott curious what kind of improvements you'd like to see here?

@sckott
Copy link
Contributor Author

sckott commented Apr 5, 2016

I think it's just not very general. I haven't tested thoroughly to make sure it works in all cases.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants