Executing search and exporting results