query takes an array of fields too. if it is an array it will query all
fields and returne a merged TopDocs result

FIXME: this has to be cleaner. result gets moved over to plain javascript, but only partially