Empty search input does not return all posts

Usually this is because by default WP_Query will return the results in pages, according to your WordPress page length setting. So probably your page length is set to 15 and you’re just seeing the first page.

You should look into pagination, or you can do a new WP_Query with posts_per_page set to -1 to ensure you get all the posts.

More info on how to use WP_Query is here: https://developer.wordpress.org/reference/classes/wp_query/#pagination-parameters , or provide more info on what and where you’re trying to do this if you want more help on a specific case