elasticsearch-api/lib/elasticsearch/api/actions/rollup/rollup_search.rb
# Enables searching rolled-up data using the standard query DSL.
# 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 [List] :index The indices or index-pattern(s) (containing rollup or regular data) that should be searched
# @option arguments [String] :type The doc type inside the index *Deprecated*
# @option arguments [Boolean] :typed_keys Specify whether aggregation and suggester names should be prefixed by their respective types in the response
# @option arguments [Boolean] :rest_total_hits_as_int Indicates whether hits.total should be rendered as an integer or an object in the rest search response
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The search request body (*Required*)
#
# *Deprecation notice*:
# Specifying types in urls has been deprecated
# Deprecated since version 7.0.0
#
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-search.html
#
Enables searching rolled-up data using the standard query DSL.
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.
Enables searching rolled - up data using the standard query DSL . 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 rollup_search(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          _index = arguments.delete(:index)
          _type = arguments.delete(:type)
          method = Elasticsearch::API::HTTP_POST
          path   = if _index && _type
                     "#{Utils.__listify(_index)}/#{Utils.__listify(_type)}/_rollup_search"
                   else
                     "#{Utils.__listify(_index)}/_rollup_search"
                   end
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def rollup_search ( arguments = { } ) raise ArgumentError , "Required argument 'body' missing" unless arguments [ :body ] raise ArgumentError , "Required argument 'index' missing" unless arguments [ :index ] headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone _index = arguments . delete ( :index ) _type = arguments . delete ( :type ) method = Elasticsearch :: API :: HTTP_POST path = if _index && _type "#{Utils.__listify(_index)}/#{Utils.__listify(_type)}/_rollup_search" else "#{Utils.__listify(_index)}/_rollup_search" end params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Enables searching rolled-up data using the standard query DSL.
Enables searching rolled - up data using the standard query DSL .
arguments
:body The search request body (*Required*) *Deprecation notice*: Specifying types in urls has been deprecated Deprecated since version 7.0.0
: body The search request body ( * Required * ) * Deprecation notice * : Specifying types in urls has been deprecated Deprecated since version 7 . 0 . 0
see
None