Index custom meta data attributes of file in azure cognitive search

teja_98666 36 Reputation points

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?

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

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 19,436 Reputation points

    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.