Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8047

large longs is being saved incorrect

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 5.3
    • Fix Version/s: None
    • Component/s: Schema and Analysis
    • Labels:
      None

      Description

      I have a solr schema with a field in long type

      <field name="source_raw_hash" type="long" indexed="true" stored="true"/>

      the long type in the schema is the default:

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

      I am saving to the index in solrJ, the value: 3954983690244748504 to this field, but it's being saved as 3954983690244748300

      I am having the same with different large values.

      I also tested it from admin UI, adding the same long and it's being saved incorrect

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              manhal Manhal
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: