lib/elasticsearch/api/actions/mtermvectors.rb in elasticsearch-api-8.1.0 vs lib/elasticsearch/api/actions/mtermvectors.rb in elasticsearch-api-8.1.2

- old
+ new

@@ -37,18 +37,17 @@ # @option arguments [Hash] :body Define ids, documents, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. # # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/docs-multi-termvectors.html # def mtermvectors(arguments = {}) + arguments = arguments.clone headers = arguments.delete(:headers) || {} body = if (ids = arguments.delete(:ids)) { :ids => ids } else arguments.delete(:body) end - - arguments = arguments.clone _index = arguments.delete(:index) method = if body Elasticsearch::API::HTTP_POST