def MultifieldParser(fieldnames, schema, fieldboosts=None, **kwargs):
 from whoosh.qparser.plugins import MultifieldPlugin
 p = QueryParser(None, schema, **kwargs)
 mfp = MultifieldPlugin(fieldnames, fieldboosts=fieldboosts)
 p.add_plugin(mfp)
 return p

def MultifieldParser ( fieldnames , schema , fieldboosts = None , ** kwargs ) : from whoosh . qparser . plugins import MultifieldPlugin p = QueryParser ( None , schema , ** kwargs ) mfp = MultifieldPlugin ( fieldnames , fieldboosts = fieldboosts ) p . add_plugin ( mfp ) return p
returns a queryparser configured to search in multiple fields .