lib/elasticsearch/api/actions/search.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/search.rb in elasticsearch-api-8.1.0
- old
+ new
@@ -65,17 +65,17 @@
# @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 [String] :min_compatible_shard_node The minimum compatible version that all shards involved in search should have for this request to be successful
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The search definition using the Query DSL
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/search-search.html
#
def search(arguments = {})
- arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = arguments.delete(:body)
+ arguments = arguments.clone
arguments[:index] = UNDERSCORE_ALL if !arguments[:index] && arguments[:type]
_index = arguments.delete(:index)
method = if body