Skip to main content

documents

Creates, updates, deletes, gets or lists a documents resource.

Overview

Namedocuments
TypeResource
Idazure.search_documents.documents

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_documentexeckey_name, index_name, search_service_namex-ms-query-source-authorization, x-ms-enable-elevated-read, $selectRetrieves a document from the index.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
index_namestring
key_namestringThe key of the document to retrieve. Required.
search_service_namestringSearch service name. (default: )
$selectarrayList of field names to retrieve for the document; Any field not retrieved will be missing from the returned document. Default value is None.
x-ms-enable-elevated-readbooleanA value that enables elevated read that bypass document level permission checks for the query operation. Default value is None.
x-ms-query-source-authorizationstringToken identifying the user for which the query is being executed. This token is used to enforce security restrictions on documents. Default value is None.

Lifecycle Methods

Retrieves a document from the index.

EXEC azure.search_documents.documents.get_document 
@key_name='{{ key_name }}' --required,
@index_name='{{ index_name }}' --required,
@search_service_name='{{ search_service_name }}' --required,
@x-ms-query-source-authorization='{{ x-ms-query-source-authorization }}',
@x-ms-enable-elevated-read={{ x-ms-enable-elevated-read }},
@$select='{{ $select }}'
;