Base class for searching