Examples of purgeAllOnStart()


Examples of org.hibernate.search.MassIndexer.purgeAllOnStart()

     * @param entityManager the entity manager
     */
    public static void reindexAll(boolean async, EntityManager entityManager) {
        FullTextEntityManager txtentityManager = Search.getFullTextEntityManager(entityManager);
        MassIndexer massIndexer = txtentityManager.createIndexer();
        massIndexer.purgeAllOnStart(true);
        try {
            if (!async) {
                massIndexer.startAndWait();
            } else {
                massIndexer.start();
View Full Code Here

Examples of org.hibernate.search.MassIndexer.purgeAllOnStart()

     * @param sess the hibernate session
     */
    public static void reindexAll(boolean async, Session sess) {
        FullTextSession txtSession = Search.getFullTextSession(sess);
        MassIndexer massIndexer = txtSession.createIndexer();
        massIndexer.purgeAllOnStart(true);
        try {
            if (!async) {
                massIndexer.startAndWait();
            } else {
                massIndexer.start();
View Full Code Here

Examples of org.hibernate.search.MassIndexer.purgeAllOnStart()

    public void makeInitialIndex() {
       
        FullTextEntityManager fullTextEntityManager = Search.getFullTextEntityManager(em);
        MassIndexer massIndexer = fullTextEntityManager.createIndexer(DocumentModel.class);
       
        massIndexer.purgeAllOnStart(true)
                .batchSizeToLoadObjects(30)
                .threadsForSubsequentFetching(8)
                .threadsToLoadObjects(4)
                .cacheMode(CacheMode.NORMAL);
       
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.