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

atomic "inc" when adding doc doesn't respect field "default" from schema

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.5, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      If you do an "atomic update" when adding a document for the first time, then the "inc" operator acts as if the field has a default of 0.

      But if the <field/> has an actual default in the schema.xml (example: default="42") then that default is ignored by the atomic update code path.

        Attachments

        1. SOLR-9838.patch
          4 kB
          Amrit Sarkar
        2. SOLR-9838.patch
          3 kB
          Ishan Chattopadhyaya

          Issue Links

            Activity

              People

              • Assignee:
                ichattopadhyaya Ishan Chattopadhyaya
                Reporter:
                hossman Hoss Man
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: