Package org.hibernate.search

Examples of org.hibernate.search.SearchFactory


        fullTextSession.index(obj);
        if (index++ % batchSize == 0)
          session.flush(); // clear every batchSize since the queue is processed
      }
    }
    final SearchFactory searchFactory = fullTextSession.getSearchFactory();
    searchFactory.optimize(clazz);
    log.info("Re-indexing of " + index + " objects of type " + clazz.getName() + " done.");
    return index;
  }
View Full Code Here


      .threadsForSubsequentFetching(20) //
      .startAndWait();
    } catch (final InterruptedException ex) {
      log.error("Exception encountered while reindexing: " + ex.getMessage(), ex);
    }
    final SearchFactory searchFactory = fullTextSession.getSearchFactory();
    searchFactory.optimize(clazz);
    log.info("Re-indexing of " + number + " objects of type " + clazz.getName() + " done.");
    return number;
  }
View Full Code Here

TOP

Related Classes of org.hibernate.search.SearchFactory

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.