def SimpleParser(fieldname, schema, **kwargs):
 from whoosh.qparser import plugins
 pins = [plugins.WhitespacePlugin, plugins.PlusMinusPlugin, plugins.PhrasePlugin]
 return QueryParser(fieldname, schema, plugins=pins, **kwargs)

def SimpleParser ( fieldname , schema , ** kwargs ) : from whoosh . qparser import plugins pins = [ plugins . WhitespacePlugin , plugins . PlusMinusPlugin , plugins . PhrasePlugin ] return QueryParser ( fieldname , schema , plugins = pins , ** kwargs )
returns a queryparser configured to support only + .