This repository contains code samples for Azure Cognitive Search that are no longer supported. This archive exists for samples that originated in repositories that are still active.
Documentation for archived samples can be found at Cognitive Search documentation archive.
Sample | Archive date | Description |
---|---|---|
DotNetEtagsExplainer | April 2024 | This C# sample is a .console application that shows how to use ETags to update Azure AI Search resources safely in the presence of concurrency. The code in this sample simulates concurrent write operations so that you can see how that condition is handled. See Manage concurrency in Azure AI Search for an updated code sample. |
DotNetHowToSynonyms | April 2024 | This C# sample was used to demonstrate the benefits of adding a synonym map using "before-and-after" queries. The Azure SDK team provides a more recent sample. See Azure.Search.Documents Samples - Service Operations for replacement code. |
DotNetHowToSecurityTrimming | October 2023 | This C# sample was used to demonstrate row-level access on search documents through security filters that include or exclude search results based on a user ID. It was originally in the search-dotnet-getting-started GitHub repo. It's replaced by code in the azure-search-openai-demo repository. See this blog post for an overview. |
image-processing | July 2023 | This sample is a Jupyter Python3 .ipynb file that is no longer maintained. It showed how to work with image skills in a skillset, such as Optical Character Recognition (OCR) and redaction of personally identifying information, but the sample's purpose was to demonstrate the coordination of image file handoffs from one skill to the next. |
create-first-app | March 2023 | "Create your first search app in C#" was a series of tutorials and code samples written for ASP.NET Core 3.1 and MVC. Lessons cover creating a basic search page, pagination, autocomplete and suggestions, faceted navigation, and sorting. It's replaced by an updated MVC code sample that demonstrates server-side operations for filtering and sorting. For client interaction, such as paging through results or facet navigation, see this sample built on a React template. |