Examples of currentFactory()


Examples of org.hibernate.search.spi.SearchFactoryBuilder.currentFactory()

  @Test
  public void testAddingClassFullModel() throws Exception {
    SearchFactoryIntegrator sf = new SearchFactoryBuilder().configuration( new SearchConfigurationForTest() ).buildSearchFactory();
    final SearchFactoryBuilder builder = new SearchFactoryBuilder();
    sf = builder.currentFactory( sf )
        .addClass( A.class )
        .buildSearchFactory();

    TransactionContextForTest tc = new TransactionContextForTest();
View Full Code Here

Examples of org.hibernate.search.spi.SearchFactoryBuilder.currentFactory()

    TopDocs hits = searcher.search( luceneQuery, 1000 );
    assertEquals( 1, hits.totalHits );

    sf.getIndexReaderAccessor().close( indexReader );

    sf = builder.currentFactory( sf )
        .addClass( B.class )
        .buildSearchFactory();

    tc = new TransactionContextForTest();
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.