Factored get_filter_func out.
Title changed based on search mode.