Weird - the only difference I see is that we us XML vs. JSON, but
otherwise, doing the following works for us:

<field update="set" name="someMultiValuedField">VALU1</field>
<field update="set" name="someMultiValuedField">VALU2</field>

Result would be:

<arr name="someMultiValuedField">
  <str>VALU1</str>
  <str>VALU2</str>
</arr>


On Thu, Feb 21, 2013 at 9:44 AM, Jack Park <jackp...@topicquests.org> wrote:
> I am using 4.1. I was not aware of that link. In the absence of being
> able to do partial updates to multi-valued fields, I just punted to
> delete and reindex. I'd like to see otherwise.
>
> Many thanks
> Jack
>
> On Thu, Feb 21, 2013 at 8:13 AM, Timothy Potter <thelabd...@gmail.com> wrote:
>> Hi Jack,
>>
>> There was a bug for this fixed for 4.1 - which version are you on? I
>> remember this b/c I was on 4.0 and had to upgrade for this exact
>> reason.
>>
>> https://issues.apache.org/jira/browse/SOLR-4134
>>
>> Tim
>>
>> On Wed, Feb 20, 2013 at 9:16 PM, Jack Park <jackp...@topicquests.org> wrote:
>>> From what I can read about partial updates, it will only work for
>>> singleton fields where you can set them to something else, or
>>> multi-valued fields where you can add something. I am testing on 4.1
>>>
>>> I ran some tests to prove to me that you cannot do anything else to a
>>> multi-valued field, like remove a value and do a partial update on the
>>> whole list. It flattens the result to a comma delimited String when I
>>> remove a value, from
>>>        "details": [
>>>           "here & there",
>>>           "Hello there",
>>>           "Oh Fudge"
>>>         ],
>>> to this
>>>    "details": [
>>>           "[here & there, Oh Fudge]"
>>>         ],
>>>
>>> Does this meant that I must remove the entire document and re-index it?
>>>
>>> Many thanks in advance
>>> Jack

Reply via email to