

def all_terms(self, termset=None, phrases=True):
    'Returns a set of all terms in this query tree.\n        \n        This method simply operates on the query itself, without reference\n        to an index (unlike existing_terms()), so it will *not* add terms\n        that require an index to compute, such as Prefix and Wildcard.\n        \n        >>> q = And([Term("content", u"render"), Term("path", u"/a/b")])\n        >>> q.all_terms()\n        set([("content", u"render"), ("path", u"/a/b")])\n        \n        :param phrases: Whether to add words found in Phrase queries.\n        :rtype: set\n        '
    if (termset is None):
        termset = set()
    self._all_terms(termset, phrases=phrases)
    return termset

dataset/ETHPy150Open dokipen/whoosh/src/whoosh/query.py Query.all_terms/original