Re: SOLRJ Atomic updates of String field

2014-11-12 Thread Anurag Sharma
I understood the query now. Atomic Update and Optimistic Concurrency are independent in Solr version > 5. Not sure about version 4.2, if they are combined in this version a _version_ field is needed to pass in every update. The atomic/partial update will succeed if version in the request and indexe

Re: SOLRJ Atomic updates of String field

2014-11-11 Thread Ahmet Arslan
Hi Bbarani, Partial update solrJ example can be found in : http://find.searchhub.org/document/5b1187abfcfad33f Ahmet On Tuesday, November 11, 2014 8:51 PM, bbarani wrote: I am using the below code to do partial update (in SOLR 4.2) partialUpdate = new HashMap(); partialUpdate.put("set",Obje

Re: SOLRJ Atomic updates of String field

2014-11-11 Thread Anurag Sharma
Sorry didn't get what you are trying to achieve and the issue. On Wed, Nov 12, 2014 at 12:20 AM, bbarani wrote: > I am using the below code to do partial update (in SOLR 4.2) > > partialUpdate = new HashMap(); > partialUpdate.put("set",Object); > doc.setField(description, partialUpdate); > serve