Support filtering by arbitrary boolean functions.