How to solve result limit from File Share Indexer in Azure Search AI using Python ?

Lyncheese 105 Reputation points
2024-01-31T10:53:04.4133333+00:00

I have a File Share Indexer which made using this tutorial
https://learn.microsoft.com/en-us/azure/search/search-file-storage-integration

My File Share has pdf files and I'm using Python SDK for Azure.

The problem now is,
I need to fetch all of the result at once, and the documents there are exceeding 100k.
Since the result is only limited to 100k using skip parameter.
What way I can use to get all of them ?

I cannot use facet or filter.
Facet cannot be done because the field data is added and filled by the indexer.
Filter also not an option since nothing can be filtered. The pdf file name are random.

I searched for continuation token in Python Azure SDK, but it is not clear enough and I have not find the suitable samples yet. Instead of returning continuation token, the search method throw exception.

Please give me more information or alternative solution for this.

Thank you.

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

Accepted answer
  1. Grmacjon-MSFT 18,896 Reputation points
    2024-02-08T19:44:01.2766667+00:00

    Hello @Lyncheese thanks for your patience. we heard from the engineering team. They pointed out that without a filterable or sortable field there's no way to retrieve more than 100k results. Please review the following this documentation: How to work with search results - Azure AI Search | Microsoft Learn

    If you have further questions, please let us know.

     -Grace

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.