You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/01/01 04:50:00 UTC

[jira] [Commented] (SOLR-15789) Explicitly say that "inc" in atomic updates can be negative

    [ https://issues.apache.org/jira/browse/SOLR-15789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17467359#comment-17467359 ] 

ASF subversion and git services commented on SOLR-15789:
--------------------------------------------------------

Commit 91c4f2e4398c350bd6310d58f578d856efc252bc in solr's branch refs/heads/main from Andy Lester
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=91c4f2e ]

SOLR-15789: docs: clarify atomic update "inc" can take negative and fractional values. (#481)



> Explicitly say that "inc" in atomic updates can be negative
> -----------------------------------------------------------
>
>                 Key: SOLR-15789
>                 URL: https://issues.apache.org/jira/browse/SOLR-15789
>             Project: Solr
>          Issue Type: Improvement
>          Components: documentation
>    Affects Versions: 8.10.1
>            Reporter: Andy Lester
>            Priority: Minor
>              Labels: atomicupdate, documentation
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> In [https://solr.apache.org/guide/8_10/updating-parts-of-documents.html] the docs say:
> "inc: Increments a numeric value by a specific amount. Must be specified as a single numeric value."
> I took this to be an analog to Redis's INCRBY, and I inferred from this that the amount could only be a positive integer.  Since there was no DECRBY, I figured that the values could only increase.
> Of course, it turns out that I can decrement the value by passing inc a negative value.  I think it would be good to explictly state that in the docs.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org