Support custom search options as a proc.