Method: Meilisearch::Index#update_documents_by_function

Defined in:
lib/meilisearch/index.rb

#update_documents_by_function(options) ⇒ Object

Update documents by function

options - A Hash containing the function string and related options

context:
filter:
function:


250
251
252
253
254
# File 'lib/meilisearch/index.rb', line 250

def update_documents_by_function(options)
  response = http_post "/indexes/#{@uid}/documents/edit", options

  Models::Task.new(response, task_endpoint)
end