@Override
public void flush(Class<?> entityType) {
EntityIndexBinder entityIndexBinding = searchFactoryImplementor.getIndexBindingForEntity( entityType );
IndexShardingStrategy shardingStrategy = entityIndexBinding.getSelectionStrategy();
WorkQueuePerIndexSplitter workContext = new WorkQueuePerIndexSplitter();
FlushLuceneWork flushOperation = new FlushLuceneWork();
flushOperation.getWorkDelegate( TransactionalSelectionVisitor.INSTANCE )
.performOperation( flushOperation, shardingStrategy, workContext );
}