CursorWrapper that allows filtering based on a custom function or basic string search.