An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
Hi @Venkata Rohith Chennakesavulu
Thanks for reaching out in Microsoft Q&A forum,
With the Azure AI Search Blob Indexer, when an existing document is re-indexed, fields supplied by the source JSON are updated. However, if a field that previously existed in the search index is simply removed from the JSON document, the indexer does not automatically remove that field from the existing search document.
For example, if the original JSON contains:
{ "id": "123", "name": "John", "department": "IT", "location": "Texas" }
and the updated JSON removes the location property:
{
"id": "123",
"name": "John",
"department": "IT"
}
the existing location value can remain in the search index.
There is currently no Blob Indexer configuration in the Azure portal to change this behavior to an upload operation, where the entire existing document is replaced whenever the blob is re-indexed.
If the intention is to clear a particular field while continuing to use the Blob Indexer, you can explicitly provide an appropriate empty value in the JSON. For example, for a string field:
{
"id": "123",
"name": "John",
"department": "IT",
"location": ""
}
This allows the existing string value to be cleared rather than leaving the previous value in the index.
If you require true full-document replacement (upload) semantics, then the Azure AI Search REST API or SDK would be required. With the Search Documents API, the upload action replaces the existing document with the document supplied in the request, whereas merge updates only the fields supplied in the request.
Therefore, from the Blob Indexer/portal perspective, there is currently no setting to switch the indexer to upload mode.
The practical options are:
- Ensure the source JSON explicitly provides empty values for fields that need to be cleared, where supported; or
- Use the Azure AI Search REST API/SDK to perform an
uploadoperation with the complete document.
For reference, please see the official Microsoft documentation:
- Index JSON blobs and files in Azure AI Search
- Data import and ingestion in Azure AI Search
- Documents – Index REST API
Kindly let us know if the above helps or you need further assistance on this issue.
Please do not forget to
and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.