Skip to content

Commit

Permalink
Merge pull request #1672 from alliance-genome/add-drop-schema
Browse files Browse the repository at this point in the history
Revert "removed dropAndCreateSchemaOnStart"
  • Loading branch information
adamgibs committed Sep 17, 2024
2 parents 139254b + 799a282 commit 1dd4475
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).mergeSegmentsOnFinish(false).typesToIndexInParallel(typesToIndexInParallel).threadsToLoadObjects(threadsToLoadObjects)
MassIndexer indexer = searchSession.massIndexer(annotatedClasses).batchSizeToLoadObjects(batchSizeToLoadObjects).idFetchSize(idFetchSize).dropAndCreateSchemaOnStart(true).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).mergeSegmentsOnFinish(false).typesToIndexInParallel(typesToIndexInParallel).threadsToLoadObjects(threadsToLoadObjects)
MassIndexer indexer = searchSession.massIndexer(objectClass).batchSizeToLoadObjects(batchSizeToLoadObjects).idFetchSize(idFetchSize).dropAndCreateSchemaOnStart(true).mergeSegmentsOnFinish(false).typesToIndexInParallel(typesToIndexInParallel).threadsToLoadObjects(threadsToLoadObjects)
.monitor(new MassIndexingMonitor() {

ProcessDisplayHelper ph = new ProcessDisplayHelper(5000);
Expand Down

0 comments on commit 1dd4475

Please sign in to comment.