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)

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 )
returns a queryparser configured to support only + .