public UpdateResponse add(Iterator<SolrInputDocument> docIterator, int commitWithinMs)
throws SolrServerException, IOException {
UpdateRequest req = new UpdateRequest();
req.setDocIterator(docIterator);
req.setCommitWithin(commitWithinMs);
return req.process(this);
}
/**
* Adds the beans supplied by the given iterator
* @param beanIterator the iterator which returns Beans