java - SolrJ doesn't catch SolrExeption -


i'm using solrj add docs solr index. see log solr throws exception when debugging response solrj doesn't solr failing. there way me error in solrj (error type: org.apache.solr.common.solrexception)?

thanks

if using concurrentupdatesolrserver (solrj 3.6 , later) or streamingupdatesolrserver (3.6 , earlier), there no error handling update requests. update requests succeed , return immediately, whether solr there accept them or not.errors logged that's it. happens because requests sent solr background threads.

if need exception handling, use httpsolrserver (commonshttpsolrserver in older releases) instead. concurrent/streaming objects trade error handling built-in threading. httpsolrserver threadsafe, not use multiple threads internally, need handle indexing simultaneously muitiple threads in own application.

nb: might confused fact 3.6 listed above both objects. isn't typo - old object types deprecated in 3.6.0 , removed in 4.0.0.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -