Setting the file. One moment.
Subchapter 3.13
references/sdk/azure-search-documents-dotnet.mdMarkdown1 KBView on GitHub
Condensed from azure-search-documents-dotnet. Full patterns (FieldBuilder, hybrid search, semantic answers) in the azure-search-documents-dotnet plugin skill if installed.
dotnet add package Azure.Search.Documentsusing Azure.Search.Documents;
using Azure.Search.Documents.Indexes;
var client = new SearchClient(new Uri(endpoint), indexName, credential);FieldBuilder + model attributes ([SimpleField], [SearchableField], [VectorSearchField]) for type-safe index definitionsVectorizedQuery for vector search; set via SearchOptions.VectorSearch.Queriesresult.Value.SemanticSearch.Answers / captions on each resultDefaultAzureCredential for local development only. In production, use ManagedIdentityCredential — see auth-best-practices.mdFieldBuilder with model attributes for type-safe index definitionsCreateOrUpdateIndexAsync for idempotent index creationSelect to return only needed fields