diff --git a/src/main/java/org/jabref/gui/JabRefMain.java b/src/main/java/org/jabref/gui/JabRefMain.java index 531afa12290..32de8b6f0d9 100644 --- a/src/main/java/org/jabref/gui/JabRefMain.java +++ b/src/main/java/org/jabref/gui/JabRefMain.java @@ -204,7 +204,7 @@ private static void clearOldSearchIndices() { try (DirectoryStream stream = Files.newDirectoryStream(appData)) { for (Path path : stream) { - if (Files.isDirectory(path) && !path.equals(currentIndexPath)) { + if (Files.isDirectory(path) && !path.toString().endsWith("ssl") && path.toString().contains("lucene") && !path.equals(currentIndexPath)) { LOGGER.info("Deleting out-of-date fulltext search index at {}.", path); Files.walk(path) .sorted(Comparator.reverseOrder())