Examples of FlushLuceneWork


Examples of org.hibernate.search.backend.FlushLuceneWork

  @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 );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.