Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "Per Steffensen/Update semantics" page has been changed by Per Steffensen: http://wiki.apache.org/solr/Per%20Steffensen/Update%20semantics?action=diff&rev1=25&rev2=26 Comment: .get() is not to be used before we get our async SolrJ interface (SOLR-3383) committet, and that is probably not going to happen for a long time {{{#!java SolrServer server = //... somehow you have a SolrJ client (instance of SolrServer) ... - UpdateResponse response = server.add(docs, ... your SolrParams ...).get(); + UpdateResponse response = server.add(docs, ... your SolrParams ...); }}} ==== Checking responses for partial errors ==== @@ -276, +276 @@ {{{#!java UpdateResponse response; try { - response = server.add(docs, ... your SolrParams ...).get(); + response = server.add(docs, ... your SolrParams ...); } catch (org.apache.solr.common.partialerrors.PartialErrors e) { response = (UpdateResponse)e.getSpecializedResponse(); DocumentUpdatePartialError err; @@ -294, +294 @@ {{{#!java try { - UpdateResponse response = server.add(docA, ... your SolrParams ...).get(); + UpdateResponse response = server.add(docA, ... your SolrParams ...); } catch (org.apache.solr.common.partialerrors.update.DocumentDoesNotExist e) { //... do something ... } catch (org.apache.solr.common.partialerrors.update.DocumentAlreadyExists e) {