Functional custom search