print.elastic_api: Pretty-print aggs and query JSON objects.

Description Usage Arguments Value Examples

View source: R/api.R

Description

Pretty-print aggs and query JSON objects.

Usage

1
2
## S3 method for class 'elastic_api'
print(x, ...)

Arguments

x

elastic_query or elastic_aggs object.

...

For consitency with all other print methods.

Value

Character string of pretty-printed JSON object.

Examples

1
2
all_docs <- query('{"match_all": {}}')
print(all_docs)

Example output

{
    "query": {
        "match_all": {

        }
    }
}
 

elasticsearchr documentation built on July 31, 2019, 1:05 a.m.