Index Custom metaData properties to a specific index

Guilherme Ferreira 0 Reputation points
2025-01-17T11:57:48.4866667+00:00

I have this custom metadata defined in a file:
User's image

I want to pass them to my fields in my index so that I can use them to filter my search, here's the field structure:

User's image

I'm having an issue passing this custom metadata values, can someone help me? Here's my skillset and indexer configs:

User's image

User's image

User's image

User's image

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,166 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,051 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 28,146 Reputation points
    2025-01-18T18:00:19.1933333+00:00

    Check that the indexer is correctly configured to map the metadata fields. For example:

    {
      "sourceFieldName": "/document/metadata_idioma",
      "targetFieldName": "idioma",
      "mappingFunction": {
        "name": "base64Decode",
        "parameters": {
          "useHttpServerUtilityUrlTokenDecode": false
        }
      }
    },
    {
      "sourceFieldName": "/document/metadata_tema",
      "targetFieldName": "tema",
      "mappingFunction": {
        "name": "base64Decode",
        "parameters": {
          "useHttpServerUtilityUrlTokenDecode": false
        }
      }
    }
    

    In the skillset, verify that metadata extraction is enabled, and you’re explicitly pulling the metadata properties using the /document/metadata_* path.

    Check also the target fields (idioma, tema) they should be defined in your index schema and have Filterable enabled if you need to filter by them.

    {
      "name": "idioma",
      "type": "String",
      "retrievable": true,
      "filterable": true,
      "sortable": true,
      "facetable": true,
      "searchable": false
    },
    {
      "name": "tema",
      "type": "String",
      "retrievable": true,
      "filterable": true,
      "sortable": true,
      "facetable": true,
      "searchable": false
    }
    
    0 comments No comments

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.