I wanted something similar for a file crawler/uploader in c#, but don't even
want to upload the document if it exists... I'm currently querying solr
first... Is this is optimal, silly, or otherwise? 

 var url = "http://solr/select?&q=myid.doc&rows=0";;
 var txt = webclient.DownloadString(url);

if (txt.Contains("numFound=\"0\"")) 
{
    //upload the file
}

--
View this message in context: 
http://lucene.472066.n3.nabble.com/conditionally-update-document-on-unique-id-tp3119302p3543866.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to