Utilities needed by implementation of search interface.