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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.5, 7.0
    • None
    • 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

              ichattopadhyaya Ishan Chattopadhyaya
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: