Examples of useFileSystemDirectoryProvider()


Examples of org.hibernate.search.test.util.FullTextSessionBuilder.useFileSystemDirectoryProvider()

    FullTextSessionBuilder fullTextSessionBuilder = builder.addAnnotatedClass( SnowStorm.class );
    if ( optionName != null ) {
      fullTextSessionBuilder.setProperty( "hibernate.search.default.locking_strategy", optionName );
    }
    if ( ! useRamDirectory ) {
      fullTextSessionBuilder.useFileSystemDirectoryProvider( CustomLockProviderTest.class );
    }
    FullTextSessionBuilder ftsb = fullTextSessionBuilder.build();
    try {
      SearchFactoryImplementor searchFactory = (SearchFactoryImplementor) ftsb.getSearchFactory();
      EntityIndexBinding indexBindingForEntity = searchFactory.getIndexBinding( SnowStorm.class );
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.