TermIterator term_iterator()
Get an iterator for the terms in this document.
a TermIterator object which can be passed to foreach()