elasticsearch-api/lib/elasticsearch/api/actions/indices/field_usage_stats.rb
# Returns the field usage stats for each field of an index
# This functionality is Experimental and may be changed or removed
# completely in a future release. Elastic will take a best effort approach
# to fix any issues, but experimental features are not subject to the
# support SLA of official GA features.
#
# @option arguments [String] :index A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
# @option arguments [List] :fields A comma-separated list of fields to include in the stats if only a subset of fields should be returned (supports wildcards)
# @option arguments [Boolean] :ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
# @option arguments [Boolean] :allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/field-usage-stats.html
#
Returns the field usage stats for each field of an index
This functionality is Experimental and may be changed or removed
completely in a future release. Elastic will take a best effort approach
to fix any issues, but experimental features are not subject to the
support SLA of official GA features.
Returns the field usage stats for each field of an index This functionality is Experimental and may be changed or removed completely in a future release . Elastic will take a best effort approach to fix any issues but experimental features are not subject to the support SLA of official GA features .
def field_usage_stats(arguments = {})
          raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _index = arguments.delete(:index)
          method = Elasticsearch::API::HTTP_GET
          path   = "#{Utils.__listify(_index)}/_field_usage_stats"
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def field_usage_stats ( arguments = { } ) raise ArgumentError , "Required argument 'index' missing" unless arguments [ :index ] headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _index = arguments . delete ( :index ) method = Elasticsearch :: API :: HTTP_GET path = "#{Utils.__listify(_index)}/_field_usage_stats" params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Returns the field usage stats for each field of an index
This functionality is Experimental and may be changed or removed
completely in a future release.
Returns the field usage stats for each field of an index This functionality is Experimental and may be changed or removed completely in a future release .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None