void addDoc(SolrContentHandler handler) throws IOException { templateAdd.clear(); doAdd(handler, templateAdd); }
public void document(SolrInputDocument document, UpdateRequest updateRequest) { if (addCmd == null) { addCmd = getAddCommand(updateRequest.getParams()); } addCmd.solrDoc = document; try { processor.processAdd(addCmd); addCmd.clear(); } catch (IOException e) { throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "ERROR adding document " + document); } } });
} else if ("doc".equals(currTag)) { XmlUpdateRequestHandler.log.trace("adding doc..."); addCmd.clear(); addCmd.solrDoc = readDoc(parser); processor.processAdd(addCmd);
@Override public void performAdd(final Triple triple) { updateCommand.clear();