You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Arjun Dhar <dh...@yahoo.com> on 2013/06/03 09:47:47 UTC

Why Numeric (IntField) tokenized false by Default

If One refers to the JavaDoc for Sort it states that INDEX and and the field
should NOT be TOKENIZED.
Its a common use case for Numbers to be Sorted.

Am curious to find the default values of say IntField as :
TYPE_NOT_STORED.setTokenized(true);

Any reason why its tokenized by default? 
The constructors suggest you should play with STORE or NO STORE @ best. But
I feel there is sufficient reason to have to define your own FieldType for
sorting ?



--
View this message in context: http://lucene.472066.n3.nabble.com/Why-Numeric-IntField-tokenized-false-by-Default-tp4067736.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.

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