Solr does not have an "update" per se:  you have to re-add the document.  A 
document with the same value for the field defined as the uniqueKey will 
replace any existing document with that key (you do not have to query and 
explicitly delete it first).

JRJ

-----Original Message-----
From: hadi [mailto:md.anb...@gmail.com] 
Sent: Wednesday, October 19, 2011 12:50 AM
To: solr-user@lucene.apache.org
Subject: How to update document with solrj?

I have indexed some files that do not have any tag or description and i want
to add some field without deleting them,how can i update or add info to my
index files with solrj?
my idea for this issue is query on specific file and delete it and add some
info and re index it but i think it is not a good idea


--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-update-document-with-solrj-tp3433434p3433434.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to