For multivalued fields on atomic update, add will append a value to the existing list of values, while set will discard the existing values and start a fresh list of values. So, you could do a set followed by a sequence of add's to set a new list of values for a multivalued field.

-- Jack Krupansky

-----Original Message----- From: vit
Sent: Monday, March 17, 2014 10:22 AM
To: solr-user@lucene.apache.org
Subject: Difference between addfield and setfield in SolrInputDocument

Could someone explain me, please, the difference between addfield and
setfield in SolrInputDocument



--
View this message in context: http://lucene.472066.n3.nabble.com/Difference-between-addfield-and-setfield-in-SolrInputDocument-tp4124809.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to