On Fri, Sep 11, 2009 at 4:45 PM, Uwe Schindler <u...@thetaphi.de> wrote: > By the way: This is documented: > http://hudson.zones.apache.org/hudson/job/Lucene-trunk/javadoc/core/org/apac > he/lucene/document/NumericField.html > > NOTE: This class is only used during indexing. When retrieving the stored > field value from a Document instance after search, you will get a > conventional Fieldable instance where the numeric values are returned as > Strings (according to toString(value) of the used data type). > > (this o.a.l.document.Fieldable is always a o.a.l.document.Field)
Lazy loading could return a different implementation. Even w/o lazy loading, we're also not going to guarantee that a Fieldable is always a Field, right? Perhaps those methods returning a Field should be deprecated sometime. -Yonik http://www.lucidimagination.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org