Go to the documentation of this file.
19package org.sleuthkit.autopsy.keywordsearch;
22import java.util.logging.Level;
23import org.sleuthkit.autopsy.coreutils.Logger;
24import org.sleuthkit.autopsy.ingest.AnalysisResultIngestModule;
25import org.sleuthkit.autopsy.ingest.IngestJobContext;
26import org.sleuthkit.autopsy.ingest.IngestModule;
27import org.sleuthkit.datamodel.AnalysisResult;
28import org.sleuthkit.datamodel.BlackboardArtifact;
56 Ingester ingester = Ingester.getDefault();
57 Reader blackboardExtractedTextReader = KeywordSearchUtil.getReader(result);
58 String sourceName = result.getDisplayName() +
"_" + result.getArtifactID();
59 ingester.indexMetaDataOnly(result, sourceName);
60 ingester.search(blackboardExtractedTextReader,
61 result.getArtifactID(),
65 settings.getNamesOfEnabledKeyWordLists());
67 }
catch (Exception ex) {
68 LOGGER.log(Level.SEVERE, String.format(
"Error indexing analysis result '%s' (job ID=%d)", result,
context.getJobId()), ex);
synchronized static Logger getLogger(String name)
final KeywordSearchJobSettings settings
static final Logger LOGGER
static final int TSK_KEYWORD_HIT_TYPE_ID
IngestModule.ProcessResult process(AnalysisResult result)
void startUp(IngestJobContext context)
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.