Loading from file, before docs2 change
reinitialize trie and hashmaps after processing a query