Learn R Programming

elastic (version 0.8.4)

field_caps: Field capabilities

Description

The field capabilities API allows to retrieve the capabilities of fields among multiple indices.

Usage

field_caps(fields = NULL, index = NULL, body = list(), raw = FALSE,
  asdf = FALSE, ...)

Arguments

fields

A list of fields to compute stats for. optional

index

Index name, one or more

body

Query, either a list or json

raw

(logical) Get raw JSON back or not

asdf

(logical) If TRUE, use jsonlite::fromJSON() to parse JSON directly to a data.frame if possible. If FALSE (default), list output is given.

...

Curl args passed on to httr::POST()

References

https://www.elastic.co/guide/en/elasticsearch/reference/current/search-field-caps.html

See Also

field_stats()

Examples

Run this code
# NOT RUN {
connect()

field_caps(body = '{ "fields": ["speaker"] }', index = "shakespeare")
# }

Run the code above in your browser using DataLab