How to index multiple data source when one of the source is file share ?

Lyncheese 105 Reputation points
2024-01-22T09:14:38.2766667+00:00

Hi !

I tried to make an index with multiple data sources following this tutorial
https://learn.microsoft.com/en-us/azure/search/tutorial-multiple-data-sources

The data source I will use are Azure SQL Database and File Share
Index making for file share was mentioned in this link
https://learn.microsoft.com/en-us/azure/search/search-file-storage-integration

The problem here is, how to use both of them (Azure SQL Database and File Share) as the data source ?
Firstly, they don't have key column with same data, but data from SQL has filename column and the file share will have metadata_storage_name, but both are not key column will this work ?

The idea is to combine content data from file share indexer, to the data from SQL.

I tried to run indexer twice from Azure portal both targeting same index, first from SQL indexer, second from File indexer.
But the content is still empty
I already use field mapping from file indexer for the filename and metadata_storage_name mapping**.
**
Unfortunately, the index still showing no data in content column

Is there any extra steps needed or is this not possible yet ?

Azure SQL Database
Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,213 questions
0 comments No comments
{count} votes

Accepted answer
  1. brtrach-MSFT 17,476 Reputation points Microsoft Employee
    2024-01-24T23:18:33.6233333+00:00

    @Lyncheese In order to combine data from these two sources, you need to have a common field between them. As you mentioned, the filename column from SQL and metadata_storage_name from File Share are not key columns. However, you can still use them as a common field to merge data from both sources. To do this, you need to create an indexer that pulls data from both sources and populates a single search index. You can configure an indexer that pulls from both sources to populate a single search index. The two data sets must have a value in common to support the merge. In this sample, that field is an ID. As long as there's a field in common to support the mapping, an indexer can merge data from disparate resources: structured data from Azure SQL, unstructured data from Blob storage, or any combination of supported data sources on Azure. You can follow the tutorial you mentioned earlier to create an indexer that pulls data from both sources and populates a single search index. You can also use the field mapping feature to map the filename column from SQL and metadata_storage_name from File Share to a common field in the search index. If you have already created an indexer that pulls data from both sources and populates a single search index, but the content is still empty, there might be some issues with the configuration. You can check the logs to see if there are any errors or warnings. If you are still facing issues, please let me know and I will try to help you further.


1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.