add flag to control how comparisons are done in queryable user repository