On Wed, Mar 4, 2009 at 2:56 PM, Jonathan Ariel <ionat...@gmail.com> wrote: > Hi everyone! > So it seems like I ran into a bug with sdouble. > I have a document with two fields. > field1 is double > > <field name="field1" type="double" indexed="true" > stored="true" omitNorms="true"/> > <field name="field2" type="sdouble" > indexed="true" stored="true" omitNorms="true"/> > > when I index I send for both of them the same value (73000000) and when I'm > querying I'm getting the following > > <double name="field1">73000000</double> > <double name="field2">7.3E7</double> > > What do you think? Why am I getting different notations?
The straight "double" type indexes things as a string w/o doing any sort of normalization. So a value of 100.000 will be indexed and stored as 100.000. "sdouble" needs to parse the float, and it gets more normalized as a byproduct. If anything, one could consider lack of normalization a bug with double, not sdouble. -Yonik http://www.lucidimagination.com