(fieldboosts, schema, tiebreak=0.0, **kwargs)
return QueryParser(None, schema, plugins=pins, **kwargs)
Returns a QueryParser configured to support only +, -, and phrase
    syntax, and which converts individual terms into DisjunctionMax queries
    across a set of fields.

    :param fieldboosts: a dictionary mapping field names to boosts.
Returns a QueryParser configured to support only +, -, and phrase
    syntax, and which converts individual terms into DisjunctionMax queries
    across a set of fields.
Returns a QueryParser configured to support only + - and phrase syntax and which converts individual terms into DisjunctionMax queries across a set of fields .
def DisMaxParser(fieldboosts, schema, tiebreak=0.0, **kwargs):
    """Returns a QueryParser configured to support only +, -, and phrase
    syntax, and which converts individual terms into DisjunctionMax queries
    across a set of fields.

    :param fieldboosts: a dictionary mapping field names to boosts.
    """

    from whoosh.qparser import plugins

    mfp = plugins.MultifieldPlugin(list(fieldboosts.keys()),
                                   fieldboosts=fieldboosts,
                                   group=syntax.DisMaxGroup)
    pins = [plugins.WhitespacePlugin,
            plugins.PlusMinusPlugin,
            plugins.PhrasePlugin,
            mfp]
    return QueryParser(None, schema, plugins=pins, **kwargs)
def DisMaxParser ( fieldboosts , schema , tiebreak = 0.0 , * * kwargs ) : from whoosh . qparser import plugins mfp = plugins . MultifieldPlugin ( list ( fieldboosts . keys ( ) ) , fieldboosts = fieldboosts , group = syntax . DisMaxGroup ) pins = [ plugins . WhitespacePlugin , plugins . PlusMinusPlugin , plugins . PhrasePlugin , mfp ] return QueryParser ( None , schema , plugins = pins , * * kwargs )