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);