Confluence 7.0 and later
The Search Decorator module allows plugins to change the behaviour of the default v2 search. As the v2 search API is the ubiquitous way to access search, the search decorator affects all Confluence functionality that relies on search. You can use it to change the order of contents returned by search, or change the filter to exclude a certain type of content.
See our Create a search decorator tutorial for a step-by-step example.