I would like to override Confluence/Jira search using my own logic, sorting and type of results returned... Any ideas how this could be designed?
I could probably leverage SearchPerformedEvent to listen for search events and then get the input from the "Quick Search" box and run my plugin code and redirect the user to another page where I am displaying the results. My only concern here is if Confluence is still going to search the index for the originated user search query and thus two searches to be performed... overwhelming the system?
What do you think?
EDIT:
...or looking at the class API there is a method getNumberOfResults which means this event is triggered after the the actual index search has been performed.
So do you guys know of a way to intercept the search before the index is searched?