From 3ef0915aeacaa38d0f37e1e364e723abced4fadd Mon Sep 17 00:00:00 2001 From: Eugene Livis Date: Fri, 22 Jan 2021 15:38:35 -0500 Subject: [PATCH] Only creating index directories for SU cases --- .../src/org/sleuthkit/autopsy/keywordsearch/IndexFinder.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/IndexFinder.java b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/IndexFinder.java index 9219a80b74..243ae7ae13 100644 --- a/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/IndexFinder.java +++ b/KeywordSearch/src/org/sleuthkit/autopsy/keywordsearch/IndexFinder.java @@ -60,10 +60,6 @@ class IndexFinder { String indexFolderName = "solr" + CURRENT_SOLR_VERSION + "_schema" + CURRENT_SOLR_SCHEMA_VERSION; // new index should be stored in "\ModuleOutput\keywordsearch\data\solrX_schemaY\index" File targetDirPath = Paths.get(theCase.getModuleDirectory(), KWS_OUTPUT_FOLDER_NAME, KWS_DATA_FOLDER_NAME, indexFolderName, INDEX_FOLDER_NAME).toFile(); //NON-NLS - if (!targetDirPath.mkdirs()) { - logger.log(Level.SEVERE, "Unable to create index directory: {0}", targetDirPath.toString()); - throw new AutopsyService.AutopsyServiceException("Unable to create text index directory " + targetDirPath.getAbsolutePath()); - } return new Index(targetDirPath.getAbsolutePath(), CURRENT_SOLR_VERSION, CURRENT_SOLR_SCHEMA_VERSION, "", theCase.getName()); }