Well this is for the default XF search.
I had a look through those, but still can not figure out where to stop the system from not logging a search if the results are empty.
I would like to log empty results so admins can see what is being searched for on their sites, so if they keep seeing certain keywords searched for with no results they can add content to the site pertaining to those keywords.