Description
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.
Attachments
Attachments
Issue Links
- duplicates
-
SOLR-4319 New atomic update operation: AddToSet
- Resolved
- is depended upon by
-
SOLR-12015 Add support for "add-distinct" in AtomicUpdateProcessorFactory
- Closed