Flush insert list, commit and swap cores when solr indexing completes.