Cognitive Search - Custom blob metadata keys

Alex Gagnon 92 Reputation points
2022-12-28T16:23:47.86+00:00

How do I take a custom metadata key added to a blob and include it in an index? I know that when using contentAndMetadata or metadataOnly on blobs, certain metadata properties such as metadata_storage_path are available to the indexer.

For example, given a blob test.html, I add a custom metadata key createdBy with value frodo baggins. This doesn't seem available on /document after the document cracking skill executes, however, so how can I get this into the index?

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

1 answer

Sort by: Most helpful
  1. Alex Gagnon 92 Reputation points
    2022-12-28T16:42:54.757+00:00

    It seems it is available on /document, it just doesn't show up in the debug session. You need to specifically know to reference the name of the key. I.e. in the index you can just create a field matching the key name, or use fieldMapping to change the key name in the index


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.