Search code examples
azure-cognitive-search

Fastest way to select a Single Document From Azure Search


Is there any preferred (fastest) way to select a SINGLE document from Azure Search Or does one have to issue a query using its ID etc. Many thanks


Solution

  • If you're using the REST API: https://learn.microsoft.com/rest/api/searchservice/lookup-document

    If you're using the.NET SDK: searchIndexClient.Documents.Get("Put your document ID here")