Helper functions to search through a collection of entities
create a query decorator to search through a collection of entities :param admin: the admin interface of the entity :param text: the text to search for :return: a function that can be applied to a query to make the query filter only the objects related to the requested text or None if no such decorator could be build