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

Add support for "add-distinct" atomic update operation

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.3, 8.0
    • Component/s: None
    • Labels:
      None

      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

        1. SOLR-11267.patch
          7 kB
          Amrit Sarkar
        2. SOLR-11267.patch
          5 kB
          Amrit Sarkar
        3. SOLR-11267.patch
          4 kB
          Amrit Sarkar

          Issue Links

            Activity

              People

              • Assignee:
                noble.paul Noble Paul
                Reporter:
                ichattopadhyaya Ishan Chattopadhyaya
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: