lib/elastic/app-search/api/put_documents.rb in elastic-enterprise-search-7.14.1 vs lib/elastic/app-search/api/put_documents.rb in elastic-enterprise-search-7.15.0
- old
+ new
@@ -20,20 +20,20 @@
module Elastic
module EnterpriseSearch
module AppSearch
module Actions
# Documents - Partial update of documents
+ # Update specific document fields by id and field
#
- # @param engine_name [String] (*Required*)
+ # @param engine_name [String] Name of the engine (*Required*)
# @param arguments [Hash] endpoint arguments
- # @option arguments [Array] :documents List of documents to update (*Required*)
+ # @option arguments [Array] :documents
# @option arguments [Hash] :headers optional HTTP headers to send with the request
#
# @see https://www.elastic.co/guide/en/app-search/current/documents.html#documents-partial
#
def put_documents(engine_name, arguments = {})
raise ArgumentError, "Required parameter 'engine_name' missing" unless engine_name
- raise ArgumentError, "Required parameter 'documents' missing" unless arguments[:documents]
documents = arguments.delete(:documents) || {}
headers = arguments.delete(:headers) || {}
request(