Index custom meta data attributes of file in azure cognitive search

teja_98666 36 Reputation points
2022-04-07T12:51:55.54+00:00

Hi,
I'm exploring Azure Cognitive search to index files. Files are stored in Azure blob storage.
I created an indexer, index and a data source and ran the indexer i could notice that it indexes only few meta data properties like file name, path etc.
Our application stores the custom meta data properties of files in database. How do i index these properties along with the pre-defined properties?
is there any api that helps me to push the file from blob storage to index and also stamp the custom meta data properties?
Thanks

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,339 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2022-04-08T06:20:20.83+00:00

    Thanks for asking question!

    As mentioned here in Azure Blob indexer - Azure Cognitive Search

    custom metadata of blobs will be indexed as long as the user-specified (custom) metadata properties have the exact same value defined in the index so it is mapped.

    "User-specified metadata properties are extracted verbatim. To receive the values, you must define field in the search index of type Edm.String, with same name as the metadata key of the blob. For example, if a blob has a metadata key of Sensitivity with value High, you should define a field named Sensitivity in your search index and it will be populated with the value High."

    Let us know if further query.


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.