add multiple indexes, and better query output, sort the documents by term so we most common terms do not have to be reclaculated