On 5/18/2012 1:42 AM, Jamel ESSOUSSI wrote:
I have an incorrect schema -->  a missing field :

and when I add a documents (UpdateResponse ur = solrServer.add(docs), I have
not be able to catch exception in solrj and the UpdateResponse cannot handle
result in UpdateResponse.

I use solr-core3.6, solr-solrj3.6 and solr.war4.0

Which SolrServer implementation are you using? If you are using ConcurrentUpdateSolrServer (or its httpclient 3.x predecessor, StreamingUpdateSolrServer), your program will never be able to detect when an error occurs. You must use HttpSolrServer if exception handling is a requirement.

If you are already using HttpSolrServer or CommonsHttpSolrServer, then I fear your problem is beyond my experience.

Thanks,
Shawn

Reply via email to