Skip to content

Commit

Permalink
removed dropAndCreateSchemaOnStart
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgibs committed Sep 16, 2024
1 parent 5692ac6 commit 18dc4b0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public void reindexEverything(Integer batchSizeToLoadObjects, Integer idFetchSiz
ProcessDisplayHelper ph = new ProcessDisplayHelper(5000);
ph.addDisplayHandler(indexProcessDisplayService);
ph.startProcess("Mass Index Everything");
MassIndexer indexer = searchSession.massIndexer(annotatedClasses).batchSizeToLoadObjects(batchSizeToLoadObjects).idFetchSize(idFetchSize).dropAndCreateSchemaOnStart(true).mergeSegmentsOnFinish(false).typesToIndexInParallel(typesToIndexInParallel).threadsToLoadObjects(threadsToLoadObjects)
MassIndexer indexer = searchSession.massIndexer(annotatedClasses).batchSizeToLoadObjects(batchSizeToLoadObjects).idFetchSize(idFetchSize).mergeSegmentsOnFinish(false).typesToIndexInParallel(typesToIndexInParallel).threadsToLoadObjects(threadsToLoadObjects)
.monitor(new MassIndexingMonitor() {
@Override
public void documentsAdded(long increment) {
Expand Down Expand Up @@ -394,7 +394,7 @@ public void indexingCompleted() {
public void reindex(Class<?> objectClass, Integer batchSizeToLoadObjects, Integer idFetchSize, Integer limitIndexedObjectsTo, Integer threadsToLoadObjects, Integer transactionTimeout, Integer typesToIndexInParallel) {

Log.debug("Starting Indexing for: " + objectClass);
MassIndexer indexer = searchSession.massIndexer(objectClass).batchSizeToLoadObjects(batchSizeToLoadObjects).idFetchSize(idFetchSize).dropAndCreateSchemaOnStart(true).mergeSegmentsOnFinish(false).typesToIndexInParallel(typesToIndexInParallel).threadsToLoadObjects(threadsToLoadObjects)
MassIndexer indexer = searchSession.massIndexer(objectClass).batchSizeToLoadObjects(batchSizeToLoadObjects).idFetchSize(idFetchSize).mergeSegmentsOnFinish(false).typesToIndexInParallel(typesToIndexInParallel).threadsToLoadObjects(threadsToLoadObjects)
.monitor(new MassIndexingMonitor() {

ProcessDisplayHelper ph = new ProcessDisplayHelper(5000);
Expand Down

0 comments on commit 18dc4b0

Please sign in to comment.