class GdsApi::Rummager

def add_document(*args)

Other tags:
    See: https://github.com/alphagov/rummager/blob/master/doc/documents.md -

Returns:
  • (GdsApi::Response) - A status code of 202 indicates the document has been successfully queued.

Parameters:
  • index_name (V2 only) -- Name of the index to be deleted from on
  • document (Hash) -- The document to add. Must match the rummager schema matchin the `type` parameter and contain a `link` field.
  • id (String) -- The rummager/elasticsearch id. Typically the same as the `link` field, but this is not strictly enforced.
  • type (String) -- The rummager/elasticsearch document type.
def add_document(*args)
  @api.add_document(*args)
end