Hi,

I'm using solr 4.0 and I'm using an atomic update to increment a tdouble 3 
times with the same value (99.4). The third time it is incremented the values 
comes out to 298.20000000000005. Has anyone seen this error or how to fix it? 
Maybe I should use the regular double instead of a tdouble?

1 x "weight_td":{"set":0.0}

 3 x "weight_td":{"inc":99.4}

Schema information:

<dynamicField name="*_d"  type="double"          indexed="true"  stored="true"/>
<dynamicField name="*_td"    type="tdouble"  indexed="true"  stored="true"/>
<fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" 
positionIncrementGap="0"/>
<fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" 
positionIncrementGap="0"/>


Reply via email to