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.DataArtifactIngestModule;
25import org.sleuthkit.autopsy.ingest.IngestJobContext;
26import org.sleuthkit.autopsy.textextractors.TextExtractor;
27import org.sleuthkit.autopsy.textextractors.TextExtractorFactory;
28import org.sleuthkit.datamodel.BlackboardArtifact;
29import org.sleuthkit.datamodel.DataArtifact;
30import org.sleuthkit.datamodel.TskCoreException;
58 Ingester ingester = Ingester.getDefault();
59 Reader blackboardExtractedTextReader = KeywordSearchUtil.getReader(artifact);
60 String sourceName = artifact.getDisplayName() +
"_" + artifact.getArtifactID();
61 ingester.indexMetaDataOnly(artifact, sourceName);
62 ingester.search(blackboardExtractedTextReader,
63 artifact.getArtifactID(),
67 settings.getNamesOfEnabledKeyWordLists());
69 }
catch (Exception ex) {
70 LOGGER.log(Level.SEVERE, String.format(
"Error indexing data artifact '%s' (job ID=%d)", artifact,
context.getJobId()), ex);
synchronized static Logger getLogger(String name)
static final int TSK_ASSOCIATED_OBJECT_TYPE_ID
ProcessResult process(DataArtifact artifact)
void startUp(IngestJobContext context)
static final Logger LOGGER
final KeywordSearchJobSettings settings
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.