title: Update multivalued field, not getting multiple values in SOLR index
body: <p>I am trying to update SOLR index by Posting RAW JSON data, in version 4.4.0.</p>
  
  <p>Its updating fields fine, but in case of multivalued fields, its not storing multiple values but only the last one.</p>
  
  <p>For e.g-</p>
  
  <p>i. Here is my schema structure-</p>
  
  <pre><code>&lt;dynamicField name="amenity_*"  type="text_general"  indexed="true"  stored="true" multiValued="true"/&gt;
  </code></pre>
  
  <p>ii. Here is the POST json data-</p>
  
  <pre><code>   {"add":{ "doc":{"id":"7986","amenity_GENERAL":{"set":"Overnight Parking"}},"boost":1.0,"overwrite":true,"commitWithin":1000},
     "add":{ "doc":{"id":"7986","amenity_GENERAL":{"set":"Pumps"}},"boost":1.0,"overwrite":true,"commitWithin":1000},
     "add":{ "doc":{"id":"7986","amenity_GENERAL":{"set":"Parking Spaces"}},"boost":1.0,"overwrite":true,"commitWithin":1000}}
  </code></pre>
  
  <p>After a successful post, the Updated index for this id is-</p>
  
  <pre><code>     {
          "id": "7986",
          "amenity_GENERAL": [
            "Parking Spaces"
          ],
          "_version_": 1446999052093751300
        },
  </code></pre>
  
  <p>-its storing the last value- "amenity_GENERAL" from the JSON request.</p>
  
  <p>I am not sure, if I need to change the POST JSON structure for that multivalued field or not.</p>
  
  <p>Thanks in advance.</p>
  
  <hr>
  
  <p><strong>EDIT:</strong> This script will run into a CRON, so each time need to do an Update of index. In case of multivalued field, need to avoid duplicate values.</p>