[
https://issues.apache.org/jira/browse/SOLR-9838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15907449#comment-15907449
]
ASF subversion and git services commented on SOLR-9838:
-------------------------------------------------------
Commit dab1e2d66c9232a938ab8d6fdd1032f1984c75be in lucene-solr's branch
refs/heads/branch_6x from [~ichattopadhyaya]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=dab1e2d ]
SOLR-9838: 'inc' atomic update doesn't respect default field value
> atomic "inc" when adding doc doesn't respect field "default" from schema
> ------------------------------------------------------------------------
>
> Key: SOLR-9838
> URL: https://issues.apache.org/jira/browse/SOLR-9838
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Hoss Man
> Assignee: Ishan Chattopadhyaya
> Attachments: SOLR-9838.patch, SOLR-9838.patch
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]