diff --git a/src/main/java/org/jabref/logic/pdf/search/IndexingTaskManager.java b/src/main/java/org/jabref/logic/pdf/search/IndexingTaskManager.java index a0898d25ccc..8ae4117e72d 100644 --- a/src/main/java/org/jabref/logic/pdf/search/IndexingTaskManager.java +++ b/src/main/java/org/jabref/logic/pdf/search/IndexingTaskManager.java @@ -101,7 +101,7 @@ public void updateIndex(PdfIndexer indexer, BibDatabaseContext databaseContext) .map(LinkedFile::getLink) .forEach(pathsToRemove::remove); // The indexer checks the attached PDFs for modifications (based on the timestamp of the PDF) and reindexes the PDF if it is newer than the index. Therefore, we need to pass the whole library to the indexer for re-indexing. - enqueueTask(() -> indexer.addToIndex(databaseContext.getEntries())); + addToIndex(indexer, databaseContext.getEntries()); enqueueTask(() -> indexer.removePathsFromIndex(pathsToRemove)); }