Questions? Feedback? powered by Olark live chat software
Pomiń nawigację

Getting Started with Azure Search using .NET

autor: Azure Samples
Ostatnia aktualizacja: 2016-11-29
Współautorzy:
Edytuj w witrynie GitHub

This sample includes two projects that are meant to help when getting started with Azure Search and .NET. It leverages the Azure Search .NET SDK as well as many best practices. The first sample DotNetHowTo is a simple .NET console application that shows how to:

  • Create and Delete an Azure Search index
  • Upload Documents to an Azure Search index
  • Search & Filter documents within an index

The second sample AzureSearchDotNetSample is a more detailed example that demonstrates: * How to use the Azure Search Indexer to ingest data from common stores (such as Azure SQL) to populate an Azure Search index * A simple ASP.net MVC application that allow you to search and view results from an Azure Search index

Running the DotNetHowTo sample

  • Open the DotNetHowTo.sln project in Visual Studio
  • Upload the App.config with the service and api details of your Azure Search service
  • Compile and Run the project

Running the AzureSearchDotNetSample sample

  • Open the AzureSearchDotNetSample.sln project in Visual Studio
  • Upload the App.config in the DataIndexer project with the service and api details of your Azure Search service
  • Upload the Web.config in the SimpleSearchMVCApp project with the service and api details of your Azure Search service
  • Compile and Run the DataIndexer project to create an Azure Search and populate it with content from an Azure SQL database
  • Compile and Run the SimpleSearchMVCApp project to search and view the results from this index

More information

For more details on the "how-to" sample, please refer to this article:


This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.