This is kinda weird and looks a lot like a bug. Let me try to reproduce it locally! I let you know soon !
Cheers 2015-07-15 10:01 GMT+01:00 Martínez López, Alfonso <almlo...@indra.es>: > Hi, > > i'm using Solr 4.10.3, and i'm trying update a doc field using atomic > update (http://wiki.apache.org/solr/Atomic_Updates). > > My schema.xml is like this: > > <!--Fields--> > <field name="id" type="string" indexed="true" stored="true" > required="true" /> > <field name="name" type="string" indexed="true" stored="true" /> > <field name="src_desc" type="string" indexed="true" stored="true" /> > <field name="_version_" type="long" indexed="true" stored="true" / > <!--Dynamic fields definition--> > <dynamicField name="src_*" type="string" indexed="true" stored="true" > multiValued="false" /> > <dynamicField name="dinamic_*" type="string" indexed="true" stored="true" > multiValued="false" /> > <!--Copy fields--> > <copyField source="src_*" dest="dinamic_*"/> > > > I add a document with this command: > > > > curl http://<solr_host>:<sorl_port>/solr/default/update?commit=true -H > "Content-Type: text/xml" --data-binary '<add><doc><field > name="id">1</field><field name="name" >paco</field><field name="src_desc" > >friend of mine</field></doc></add>' > > > > And later I update the field 'name' with this command: > > > > curl http://<solr_host>:<sorl_port>/solr/default/update?commit=true -H > "Content-Type: text/xml" --data-binary '<add><doc><field > name="id">1</field><field name="name" > update="set">paquico</field></doc></add>' > > > > As I do so the doc i retrive from Solr is: > > > > <result name="response" numFound="1" start="0" maxScore="1.0"> > <doc> > <str name="id">1</str> > <str name="name">paquico</str> > <str name="src_desc">friend of mine</str> > <arr name="dinamic_desc"> > <str>friend of mine</str> > <str>friend of mine</str> > </arr> > <long name="_version_">1506750859550130176</long> > <float name="score">1.0</float> > </doc> > </result> > > > > So I get a non multivalued field (dinamic_desc) with multiple values :( > > > > > > ________________________________ > Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, > contiene información de carácter confidencial exclusivamente dirigida a su > destinatario o destinatarios. Si no es vd. el destinatario indicado, queda > notificado que la lectura, utilización, divulgación y/o copia sin > autorización está prohibida en virtud de la legislación vigente. En el caso > de haber recibido este correo electrónico por error, se ruega notificar > inmediatamente esta circunstancia mediante reenvío a la dirección > electrónica del remitente. > Evite imprimir este mensaje si no es estrictamente necesario. > > This email and any file attached to it (when applicable) contain(s) > confidential information that is exclusively addressed to its recipient(s). > If you are not the indicated recipient, you are informed that reading, > using, disseminating and/or copying it without authorisation is forbidden > in accordance with the legislation in effect. If you have received this > email by mistake, please immediately notify the sender of the situation by > resending it to their email address. > Avoid printing this message if it is not absolutely necessary. > -- -------------------------- Benedetti Alessandro Visiting card - http://about.me/alessandro_benedetti Blog - http://alexbenedetti.blogspot.co.uk "Tyger, tyger burning bright In the forests of the night, What immortal hand or eye Could frame thy fearful symmetry?" William Blake - Songs of Experience -1794 England