: 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 IndexReader has no idea what hte Stored 
fields are -- at a low level, there is no metadata about the stored 
fields, because (in low level lucene) every document can have differnet 
stored fields.

But if you are working in Solr, then this data is all managed by the 
IndexSchema, and you can ask it for the list of fields (and dynamic 
fields) and ask them if they are stored...

http://lucene.apache.org/solr/api/org/apache/solr/schema/IndexSchema.html#getFields()
http://lucene.apache.org/solr/api/org/apache/solr/schema/IndexSchema.html#getDynamicFieldPrototypes()

http://lucene.apache.org/solr/api/org/apache/solr/schema/SchemaField.html#stored%28%29



-Hoss

Reply via email to