query: Define Elasticsearch query.

Description Usage Arguments Value See Also Examples

View source: R/api.R

Description

Define Elasticsearch query.

Usage

1
query(json, size = 0)

Arguments

json

JSON object describing the query that needs to be executed.

size

[optional] The number of documents to return. If left unspecified, then the default if to return all documents.

Value

An elastic_query object.

See Also

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html

Examples

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

Example output



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