lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas L. Redman" <>
Subject TrieLongField not store large longs correctly
Date Wed, 26 Nov 2014 19:45:40 GMT
I believe I have encountered a bug in SOLR. I have a data type defined as follows:

<fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0”/>

And I have a field defined like so:

<field name="aid" type="long" indexed="true" stored="true" multiValued="false" required="true"
omitNorms="true" />

I have not been able to reproduce this problem for smaller numbers, but for some of the very
large numbers, the value that gets stored for this “aid” field is not the same as the
number that gets indexed. For example, 20140716126615474 is stored as 20140716126615470, or
in any even, that is the way it is getting reported back. When I issue a query, “aid: 20140716126615474”,
the value reported back for aid is 20140716126615470!

Any suggestions?
View raw message