If the search is going to be triggered or run by an User through the UI, the cleanest way I can think of is to have a Suitelet where that user will see/trigger that search and from there you can do what you want... you are going to be basically replacing the normal UI/access to the search for a Suitelet... telling the user that to see that search should be through this link(suitelet link...)