elasticsearch-api/lib/elasticsearch/api/actions/enrich/execute_policy.rb
def execute_policy(arguments = {})
          raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]

          headers = arguments.delete(:headers) || {}

          body = nil

          arguments = arguments.clone

          _name = arguments.delete(:name)

          method = Elasticsearch::API::HTTP_PUT
          path   = "_enrich/policy/#{Utils.__listify(_name)}/_execute"
          params = Utils.process_params(arguments)

          perform_request(method, path, params, body, headers).body
        end
# Creates the enrich index for an existing enrich policy.
#
# @option arguments [String] :name The name of the enrich policy
# @option arguments [Boolean] :wait_for_completion Should the request should block until the execution is complete.
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/execute-enrich-policy-api.html
#
Creates the enrich index for an existing enrich policy.
Creates the enrich index for an existing enrich policy .
def execute_policy(arguments = {})
          raise ArgumentError, "Required argument 'name' missing" unless arguments[:name]
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _name = arguments.delete(:name)
          method = Elasticsearch::API::HTTP_PUT
          path   = "_enrich/policy/#{Utils.__listify(_name)}/_execute"
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def execute_policy ( arguments = { } ) raise ArgumentError , "Required argument 'name' missing" unless arguments [ :name ] headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _name = arguments . delete ( :name ) method = Elasticsearch :: API :: HTTP_PUT path = "_enrich/policy/#{Utils.__listify(_name)}/_execute" params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Creates the enrich index for an existing enrich policy.
Creates the enrich index for an existing enrich policy .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None