modify wordpress default search

The output of search results is controlled by search.php template (or generic index.php if it’s not present).

And search is technically a usual WordPress loop with s query argument, so any snippets that apply to loops can be used to tweak search.