By default, WordPress displays ten posts on the search result page while there are some from us, who wish to see unlimited number of search results on the same page. Putting the following snippet in your theme’s search.php, you will be able to do so. Start by finding the below code in your search.php file:

Once you found it, simply replace it with:

Snippet Source/Credit: WPHacks