In your case, I suggest setting max_matches to 100000 on the server side.
Even if you need more, you can always use limit N,M to extract a fragment of a result set without going beyond.
In my experience, people donβt go to 10-20 pages in the search results, so 100K should be more than enough.
source share