Add a private on first use folder named SearchResults.
In this folder, add two action buttons. One should empty out the folder and the other should prompt the user using dialog boxes to build the query.
For the query, use the Lotuscript FTSearch method on the database. This will return a NotesDocumentCollection. You can then use the PutAllInFolder method to move the documents in the collection into SearchResults. You then have to refresh the view.