elasticsearch-api/lib/elasticsearch/api/actions/terms_enum.rb
# The terms enum API  can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios.
#
# @option arguments [List] :index A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body field name, string which is the prefix expected in matching terms, timeout and size for max number of results
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html
#
The terms enum API  can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios.
The terms enum API can be used to discover terms in the index that begin with the provided string . It is designed for low - latency look - ups used in auto - complete scenarios .
def terms_enum(arguments = {})
        raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
        headers = arguments.delete(:headers) || {}
        body = arguments.delete(:body)
        arguments = arguments.clone
        _index = arguments.delete(:index)
        method = if body
                   Elasticsearch::API::HTTP_POST
                 else
                   Elasticsearch::API::HTTP_GET
                 end
        path   = "#{Utils.__listify(_index)}/_terms_enum"
        params = {}
        perform_request(method, path, params, body, headers).body
      end
def terms_enum ( arguments = { } ) raise ArgumentError , "Required argument 'index' missing" unless arguments [ :index ] headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone _index = arguments . delete ( :index ) method = if body Elasticsearch :: API :: HTTP_POST else Elasticsearch :: API :: HTTP_GET end path = "#{Utils.__listify(_index)}/_terms_enum" params = { } perform_request ( method , path , params , body , headers ) . body end
The terms enum API  can be used to discover terms in the index that begin with the provided string.
The terms enum API can be used to discover terms in the index that begin with the provided string .
arguments
:body field name, string which is the prefix expected in matching terms, timeout and size for max number of results
: body field name string which is the prefix expected in matching terms timeout and size for max number of results
see
None