I want to get all the search results from the search API index and then perform a custom sort on it and then display them accordingly.
I used the hook_search_api_results_alter
and also the search results event.
My view has a pager to display 10 results at a time.
But the problem is, I am only getting 10 results instead of all because of that pager.
Is there any to get all the results and then perform the custom sort on it and then return it to search view to display accordingly? So that all other filters, pagers, and sorting applied after my custom sort?
My custom sorting is working fine on per page basis but that is not what I want.
Is it possible to remove the limit from the query to get all results, perform sort and apply the limit again?