Added TermVector support

See issue #519