We are trying to utilize Azure Cognitive Search to enable search functionality on our local database. We have a solution created in .Net to establish the connection with local DataSource. Local DataSource may be SQL Server, NOSQL, Access or Excel data.
For example, we have 2 million rows in excel. we want to read the data and search certain value in those records.
How to utilize Azure Cognitive Search to implement the same?
AFAIK, Azure Cognitive Search cannot search local data sources. It can only search the data that is there in an Index created inside a Cognitive Search account.
You would need to somehow bring this data in the Index. One solution would be to upload your Excel files in Azure Blob Storage and create a Data Source
using that. Then you would create an Index
and an Indexer
which will connect this Data Source to the Index and populate the Index with the data in this Data Source.
To elaborate further, let's say that your Excel file has 4 columns - Id, FirstName, LastName and EmailAddress. Here's what you would do:
Blob Storage
type Data Source.If the data in your Excel file does not change, other option could be to just read the data from Excel file and populate the Index manually. You can use Cognitive Search SDK for that purpose.