powered by
The field capabilities API allows to retrieve the capabilities of fields among multiple indices.
field_caps(conn, fields, index = NULL, ...)
an Elasticsearch connection object, see connect()
connect()
A list of fields to compute stats for. required
Index name, one or more
Curl args passed on to crul::verb-GET
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-field-caps.html
field_stats()
# NOT RUN { x <- connect() x$ping() if (x$es_ver() >= 540) { field_caps(x, fields = "speaker", index = "shakespeare") } # }
Run the code above in your browser using DataLab