On Mon, Mar 4, 2013 at 11:28 AM, Konstantyn Smirnov <inject...@yahoo.com> wrote: > changing FT to indexed=true did the trick, thanks > > Shouldn't it be enabled by default?
It should be, and I think it is, so now I'm confused/worried why you see it not enabled for indexing by default. This is how IntField inits its TYPE_STORED: public static final FieldType TYPE_STORED = new FieldType(); static { TYPE_STORED.setIndexed(true); TYPE_STORED.setTokenized(true); TYPE_STORED.setOmitNorms(true); TYPE_STORED.setIndexOptions(IndexOptions.DOCS_ONLY); TYPE_STORED.setNumericType(FieldType.NumericType.INT); TYPE_STORED.setStored(true); TYPE_STORED.freeze(); } Mike McCandless http://blog.mikemccandless.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org