Created
December 9, 2010 17:00
-
-
Save emmanuelbernard/734974 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String rebuildIndex() throws InterruptedException { | |
FullTextEntityManager fullTextEntityManager = Search | |
.getFullTextEntityManager(entityManager); | |
Future<?> future = fullTextEntityManager.createIndexer() | |
.batchSizeToLoadObjects(30).threadsForSubsequentFetching(8) | |
.threadsToLoadObjects(4).cacheMode(CacheMode.NORMAL).start(); | |
return future.isDone() ? "Index rebuilt successfully" | |
: "Index recreation in progress"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment