(self, text, normalize=True, debug=False)
return q
Parses the input string and returns a :class:`whoosh.query.Query`
        object/tree.

        :param text: the unicode string to parse.
        :param normalize: whether to call normalize() on the query object/tree
            before returning it. This should be left on unless you're trying to
            debug the parser output.
        :rtype: :class:`whoosh.query.Query`
Parses the input string and returns a :class:`whoosh.query.Query`
        object/tree.
Parses the input string and returns a : class : whoosh . query . Query object / tree .
def parse(self, text, normalize=True, debug=False):
        """Parses the input string and returns a :class:`whoosh.query.Query`
        object/tree.

        :param text: the unicode string to parse.
        :param normalize: whether to call normalize() on the query object/tree
            before returning it. This should be left on unless you're trying to
            debug the parser output.
        :rtype: :class:`whoosh.query.Query`
        """

        if not isinstance(text, text_type):
            text = text.decode("latin1")

        nodes = self.process(text, debug=debug)
        if debug:
            print_debug(debug, "Syntax tree: %r" % nodes)

        q = nodes.query(self)
        if not q:
            q = query.NullQuery
        if debug:
            print_debug(debug, "Pre-normalized query: %r" % q)

        if normalize:
            q = q.normalize()
            if debug:
                print_debug(debug, "Normalized query: %r" % q)
        return q
def parse ( self , text , normalize = True , debug = False ) : if not isinstance ( text , text_type ) : text = text . decode ( "latin1" ) nodes = self . process ( text , debug = debug ) if debug : print_debug ( debug , "Syntax tree: %r" % nodes ) q = nodes . query ( self ) if not q : q = query . NullQuery if debug : print_debug ( debug , "Pre-normalized query: %r" % q ) if normalize : q = q . normalize ( ) if debug : print_debug ( debug , "Normalized query: %r" % q ) return q