query | R Documentation |
query dsl
query(.data = list(), ...) query_(.data = list(), ..., .dots)
.data |
An index object. If nothing passed defaults to all indices, equivalent to
doing e.g., |
... |
Further args passed on |
.dots |
Explanation... |
The DSL for elastic
makes it easy to do queries against an Elasticsearch
instance, either local or remote.
The workflow with the DSL:
Start with the index to use, e.g., index("shakespeare")
Define queries, e.g., range(speech_number == 5, line_id > 3)
Execute search, e.g., Search()
Alternatively, if nothing follows a query definition, Search
is called
to execute the search with the query as given. In a sense, this is essentially like
what dplyr
does.
## Not run: elastic::connect(errors = "complete") index("shakespeare") %>% query("prefix", speaker = "we") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.