def search(query, operator='and'):
    """Execute a search given by *query*.

        *query* can be a (unicode) string or an iterable of (unicode) strings.
        *operator* can be either ``'and'`` or ``'or'`` to search for documents
        containing all keywords or any keyword.

        Return an IFSet of docids
        """
