Re: can searcher.getReader().getFieldNames() return only stored fields?

2010-08-13 Thread Chris Hostetter
: however, both of these can/will return fields that are not stored. is there : a parameter that I can use to only return fields that are stored? : : there does not seem to be a IndexReader.FieldOption.STORED and cant tell if : any of the others might work At the level of this API, the IndexRea

can searcher.getReader().getFieldNames() return only stored fields?

2010-08-12 Thread Gerald
Collection myFL = searcher.getReader().getFieldNames(IndexReader.FieldOption.ALL); will return all fields in the schema (i.e. index, stored, and indexed+stored). Collection myFL = searcher.getReader().getFieldNames(IndexReader.FieldOption.INDEXED ); likely returns all fields that are indexed (I