lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: can searcher.getReader().getFieldNames() return only stored fields?
Date Fri, 13 Aug 2010 23:37:39 GMT

: 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...


View raw message