update.setCommitWithin(commitWithin);
}
update.add(inputDocument);
AccessController.doPrivileged(new PrivilegedExceptionAction<Object>() {
public Object run() throws IOException, SolrServerException {
update.process(server);
if (immediateCommit) {
server.commit();
}
return null; // nothing to return
}