lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <ysee...@gmail.com>
Subject Re: NumericRange Field and LuceneUtils?
Date Fri, 11 Sep 2009 20:54:28 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.

-Yonik
http://www.lucidimagination.com

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