In the indexing method I use the following line:
Field contentsField = new Field("contents", new FileReader(f), Field.TermVector.YES);
However, in Lucene 4.0 this constructor is deprecated and new TextField should be used instead of new Field.
But the problem with TextField is that it don't accept TermVector in its constructors.
Is there a way to include the Term Vector in my indexing in Lucene 4.0 with the new constructors?
Thanks