Package org.hibernate.search.backend

Examples of org.hibernate.search.backend.Work


    DocumentBuilder<Object> builder = searchFactoryImplementor.getDocumentBuilders().get( clazz );
    if ( builder == null ) {
      throw new IllegalArgumentException( "Entity to index not an @Indexed entity: " + entity.getClass().getName() );
    }
    Serializable id = session.getIdentifier( entity );
    Work work = new Work( entity, id, WorkType.INDEX );
    searchFactoryImplementor.getWorker().performWork( work, transactionContext );

    //TODO
    //need to add elements in a queue kept at the Session level
    //the queue will be processed by a Lucene(Auto)FlushEventListener
View Full Code Here

TOP

Related Classes of org.hibernate.search.backend.Work

Copyright © 2018 www.massapicom. 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.