Interesting you should say that. Here is my solrj code: public Solr3Client(String solrURL) throws Exception { server = new HttpSolrServer(solrURL); // server.setParser(new XMLResponseParser()); }
I cannot recall why I commented out the setParser line; something about someone saying in another thread it's not important. I suppose I should revisit my unit tests with that line uncommented. Or, did I miss something? The JSON results I painted earlier were from reading the document online in the admin query panel. Many thanks Jack On Thu, Feb 21, 2013 at 8:52 AM, Timothy Potter <thelabd...@gmail.com> wrote: > 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