Ironclad interview question

Given the function search(query, page_size, start_from), implement a function that gets all results for a particular query. Next, implement a decorator for any search function that filters the results.