lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jeffthorne <jeff.tho...@gmail.com>
Subject Re: Field.Index deprecation ?
Date Sat, 23 Mar 2013 13:12:16 GMT
Thanks for the response Mike and pointing me in the right direction.

I see that 

TextField is indexed, tokenized, without term vectors
StringField is indexed, but not tokenized


If I wanted a stored field that is tokenized with stored term vectors would
this be the recommended approach?

FieldType customFieldType = new FieldType();
customFieldType.setStored(true);
customFieldType.setIndexed(true);
customFieldType.setTokenized(true);
customFieldType.setStoreTermVectors(true);

doc.add("contents", customFieldType);

Cheers,
Jeff




--
View this message in context: http://lucene.472066.n3.nabble.com/Field-Index-deprecation-tp4050068p4050738.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message