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

Add support for "add-distinct" atomic update operation

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 7.3, 8.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: