lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Krah <>
Subject Lucene 5.0.0 - StringField and Sorting
Date Fri, 27 Feb 2015 14:58:39 GMT

looking at the JavaDoc of StringField it says:

/** A field that is indexed but not tokenized: the entire
 *  String value is indexed as a single token.  For example
 *  this might be used for a 'country' field or an 'id'
 *  field, or any field that you intend to use for sorting
 *  or access through the field cache. */

So i intend to use some StringFields for sorting.
However trying to sort on them fails with:

java.lang.IllegalStateException: unexpected docvalues type NONE for
field 'NAME_KEYWORD' (expected=SORTED).

Was indexed as StringField and Store.YES.

So is the JavaDoc wrong here or is it correct and StringField should


so its would work?

kind regards


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message