basic index for all words in a documents