(self, boost=1.0)
Returns an iterator of :class:`analysis.Token` objects corresponding
        to all terms in this query tree. The Token objects will have the
        ``fieldname``, ``text``, and ``boost`` attributes set. If the query
        was built by the query parser, they Token objects will also have
        ``startchar`` and ``endchar`` attributes indexing into the original
        user query.
Returns an iterator of :class:`analysis.Token` objects corresponding
        to all terms in this query tree. The Token objects will have the
        ``fieldname``, ``text``, and ``boost`` attributes set. If the query
        was built by the query parser, they Token objects will also have
        ``startchar`` and ``endchar`` attributes indexing into the original
        user query.
Returns an iterator of : class : analysis . Token objects corresponding to all terms in this query tree . The Token objects will have the fieldname text and boost attributes set . If the query was built by the query parser they Token objects will also have startchar and endchar attributes indexing into the original user query .
def all_tokens(self, boost=1.0):
        """Returns an iterator of :class:`analysis.Token` objects corresponding
        to all terms in this query tree. The Token objects will have the
        ``fieldname``, ``text``, and ``boost`` attributes set. If the query
        was built by the query parser, they Token objects will also have
        ``startchar`` and ``endchar`` attributes indexing into the original
        user query.
        """

        if self.is_leaf():
            for token in self.tokens(boost):
                yield token
        else:
            boost *= self.boost if hasattr(self, "boost") else 1.0
            for child in self.children():
                for token in child.all_tokens(boost):
                    yield token
def all_tokens ( self , boost = 1.0 ) : if self . is_leaf ( ) : for token in self . tokens ( boost ) : yield token else : boost *= self . boost if hasattr ( self , "boost" ) else 1.0 for child in self . children ( ) : for token in child . all_tokens ( boost ) : yield token