lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: NumericRange Field and LuceneUtils?
Date Sat, 12 Sep 2009 08:45:50 GMT
> On Fri, Sep 11, 2009 at 4:45 PM, Uwe Schindler <uwe@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.

Yes. But this is not related to NumericField at all. But it would provide us
the possibility to return also NumericField instances from stored fields
some time in future.

Uwe


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message