Use the aa.text.parser() function to read the full document into a memory buffer and create a hash table. Text parser is a general tool for working with text fields. It can tokenize an input stream of words, optionally stem them, then emit these words in one row, or emit each individual word in a row, with an optional count of the number of times it appears.
Database user who will run the "text.parser" function must obtain the EXECUTE right on the function before running it.