Skip to content

Commit

Permalink
Add TomDoc documentation to the get_documents method
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoocasali committed May 20, 2023
1 parent 87010f7 commit 20c0bfd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/meilisearch/index.rb
Expand Up @@ -63,6 +63,17 @@ def document(document_id, fields: nil)
alias get_document document
alias get_one_document document


# Public: Retrieve documents from a index.
#
# options - The hash options used to refine the selection (default: {}):
# :limit - Number of documents to return (optional).
# :offset - Number of documents to skip (optional).
# :fields - Array of document attributes to show (optional).
# :filter - Filter queries by an attribute's value.
# Available ONLY with Meilisearch v1.2 and newer (optional).
#
# Returns the documents results object.
def documents(options = {})
Utils.version_error_handler(__method__) do
if options.key?(:filter)
Expand Down

0 comments on commit 20c0bfd

Please sign in to comment.