Null values not being picked up in azure search

Matt 0 Reputation points
2024-11-06T15:12:00.13+00:00

Hello,

When the azure search indexer goes through my azure blob table storage it does not pick up null values but I thought at one point it did. For example: Metadata is present in blob storage Testfield: testString, this metadata is deleted making the value for the field Testfield: null. After running the indexer the metadata field does not get updated even though everything else does in that document. The Testfield:testString is still present.

The metadata field only gets updated if it is changed to something else but not deleted entirely.

Is there a solution in azure for this?

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,350 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shree Hima Bindu Maganti 4,925 Reputation points Microsoft External Staff Moderator
    2024-11-07T08:04:40.0633333+00:00

    Hi @Matt ,
    Welcome to the Microsoft Q&A Platform!
    In Azure Cognitive Search, when an indexer processes data from a data source like Azure Blob Storage, it may not update fields that have null or empty values, depending on how the indexer is configured. This behavior is typically observed when a field is explicitly set to null or removed from the source but the indexer doesn't treat this as an update.
    Ensure Field Allows Nulls: Check that your field is defined to allow nulls in the index. Learn more.

    Use Soft Deletes: Instead of deleting, use placeholder values (e.g., "Deleted") to indicate missing data. This triggers updates. More details.

    Reindex the Entire Dataset: Manually trigger a full reindex to process null values. Reindexing info.

    Configure Data Source Correctly: Ensure the field is properly mapped between the data source and the index. Indexing configuration.

    Trigger Reindex Manually: Use Azure REST API or the portal to force reindexing. API details.
    By applying these methods, you can ensure that null and deleted fields are handled appropriately by your Azure Search indexer.
    f the answer is helpful, please click "Accept Answer" and kindly upvote it.

    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.