Hello @Reddy , what is the size of the your PDF docs? While Azure AI Search directly returns extracted text from indexed documents, there isn't a built-in functionality to return the entire PDF document. However, you can achieve your goal of searching and retrieving the original PDF documents based on search text using a combination of Azure AI Search and Azure Blob Storage.
Here's one approach:
1. Indexing PDFs and Extracting Text:
- Use Azure Blob Storage: Store your uploaded PDFs in Azure Blob Storage.
- Create an Azure AI Search index: Define your search index with appropriate fields, including one for the document's blob storage URL.
- Use Azure Blob Indexer: This built-in indexer automatically extracts text content from uploaded PDFs and populates the search index. It will also include the blob storage URL in the indexed data.
2. Searching and Retrieving PDFs:
- Perform search through Azure AI Search: Use your search queries to search the indexed text content of your PDFs.
- Retrieve matching PDFs: In the search results, you'll receive the blob storage URLs for the matching PDFs.
- Access and download PDFs: Use the retrieved blob storage URLs from your .NET Core application to access and download the original PDF documents using the Azure Blob Storage SDK for .NET.
Hope that helps.
-Grace