Thank you Mike,
Much appreciated :-)
From: Michael McCandless
To: java-user@lucene.apache.org; kiwi clive
Sent: Monday, March 18, 2013 4:14 PM
Subject: Re: Lucene 4.1 org.apache.lucene.document.Field Deprecation
You need to create your own FieldType, e.g
You need to create your own FieldType, e.g.:
FieldType textWithTermVectors = new FieldType(TextField.TYPE_STORED);
textWithTermVectors.setStoreTermVectorstrue);
textWithTermVectors.setStoreTermVectorPositions(true);
Then create new Field("name", "value", textWithTermVectors) and add
that to
Hi chaps,
Lucene 4.1.0:
I notice org.apache.lucene.document.Field(String name, String value,
Field.Store store, Field.Index index, Field.TermVector termVector) is marked as
deprecated while its suggested replacements (TextField and StringField) to not
seem to have support for Term Vectors.
I