Generic functions for special search modes.