Custom search replacement for predicates