field_caps {elastic} | R Documentation |
Field capabilities
Description
The field capabilities API allows to retrieve the capabilities of fields among multiple indices.
Usage
field_caps(conn, fields, index = NULL, ...)
Arguments
conn |
an Elasticsearch connection object, see |
fields |
A list of fields to compute stats for. required |
index |
Index name, one or more |
... |
Curl args passed on to crul::verb-GET |
References
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-field-caps.html
See Also
Examples
## Not run:
x <- connect()
x$ping()
if (x$es_ver() >= 540) {
field_caps(x, fields = "speaker", index = "shakespeare")
}
## End(Not run)
[Package elastic version 1.2.0 Index]