get_document

Describes how to build and run a Classic Search query.

The function get_document(document_id, collection_name)retrieves a single document from a collection.

Input -

  • document_id (str)- Specifies the identifier of the document in the database

  • collection_name (str)– Specifies the name of the Collection that contains the data to be searched.

Example –

document = hyperspace_client.get_document(document_id='47',
                                            collection_name=collection_name)

Last updated