You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by hadi <md...@gmail.com> on 2011/10/19 07:50:19 UTC

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.

RE: How to update document with solrj?

Posted by "Jaeger, Jay - DOT" <Ja...@dot.wi.gov>.
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.anbari@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.