Learn R Programming

elasticsearchr (version 0.3.1)

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

Description

Pretty-print aggs and query JSON objects.

Usage

# S3 method for 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

Run this code
# NOT RUN {
all_docs <- query('{"match_all": {}}')
print(all_docs)
# }

Run the code above in your browser using DataLab