Skip to content

Commit

Permalink
Fix re-indexing on database loading
Browse files Browse the repository at this point in the history
  • Loading branch information
btut committed Sep 11, 2022
1 parent dfd3c95 commit 4b17f10
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/main/java/org/jabref/gui/LibraryTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -885,15 +885,6 @@ public void listen(EntriesRemovedEvent removedEntriesEvent) {

private class IndexUpdateListener {

public IndexUpdateListener() {
try {
indexingTaskManager.manageFulltextIndexAccordingToPrefs(LuceneIndexer.of(bibDatabaseContext, preferencesService, preferencesService.getFilePreferences()));
indexingTaskManager.updateIndex(LuceneIndexer.of(bibDatabaseContext, preferencesService, preferencesService.getFilePreferences()));
} catch (IOException e) {
LOGGER.error("Cannot access lucene index", e);
}
}

@Subscribe
public void listen(EntriesAddedEvent addedEntryEvent) {
try {
Expand Down

0 comments on commit 4b17f10

Please sign in to comment.