Pass index factory as second argument to Predicate constructor.