SOLR-1566 -- calling commit after adding document to make sure that it is actually commited before the other.