lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amrit Sarkar (JIRA)" <>
Subject [jira] [Commented] (SOLR-11267) Add support for "add-distinct" atomic update operation
Date Thu, 22 Feb 2018 07:15:00 GMT


Amrit Sarkar commented on SOLR-11267:

examples on how to use {{add-distinct}}:

pass as list:
 "sub_categories":{"add-distinct":["children games","PG games"]},

pass as singleton value:
 "sub_categories":{"add-distinct":"V games"}

> Add support for "add-distinct" atomic update operation
> ------------------------------------------------------
>                 Key: SOLR-11267
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Ishan Chattopadhyaya
>            Assignee: Ishan Chattopadhyaya
>            Priority: Major
>         Attachments: SOLR-11267.patch, SOLR-11267.patch
> Often, a multivalued field is used as a set of values. Since multivalued fields are more
like lists than sets, users do two consecutive operations, remove and add, to insert an element
into the field and also maintain the set's property of only having unique elements.
> Proposing a new single operation, called "add-distinct" (which essentially means "add-if-doesn't
exist") for this.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message