Real-Time Indexing of Azure Blob Storage Files with Azure Cognitive Search Using Azure Functions: Seeking JavaScript Documentation

Su Myat Hlaing 75 Reputation points
2024-05-15T04:37:04.3533333+00:00

I want to ask a question in a forum: How can I achieve real-time indexing of newly uploaded files in Azure Blob Storage with Azure Cognitive Search immediately upon upload, rather than relying on an indexer with a scheduled interval, which typically runs every 5 minutes? I'm considering using an Azure Blob Storage trigger for Azure Functions for my case. Can you confirm if this approach is appropriate? Additionally, could you provide documentation or resources specifically addressing this scenario in JavaScript?

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.
750 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,479 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,701 Reputation points
    2024-05-16T07:24:41.34+00:00

    @Su Myat Hlaing Thanks for asking question! Yes, using an Azure Blob Storage trigger for Azure Functions is a good approach to achieve real-time indexing of newly uploaded files in Azure Blob Storage with Azure Cognitive Search immediately upon upload.

    With an Azure Blob Storage trigger, you can create a function that is triggered whenever a new blob is added to a specified container in your storage account. You can then use the Azure Cognitive Search SDK to add the new blob to your search index in real-time.

    Check this blog- How to Automate the Indexing of files in Azure Cognitive Search

    Useful doc links-

    https://learn.microsoft.com/en-us/azure/azure-functions/functions-create-storage-blob-triggered-function

    https://learn.microsoft.com/en-us/azure/search/tutorial-javascript-create-load-index?tabs=azure-cli

    https://learn.microsoft.com/en-us/azure/search/samples-javascript

    Hope this helps, let us know.

    1 person found this answer helpful.
    0 comments No comments