solr by default in upgrade

This commit is contained in:
Greg DiCristofaro 2023-09-12 13:51:59 -04:00
parent 556c89f076
commit ccc4dba6e5

View File

@ -29,6 +29,7 @@ import org.sleuthkit.autopsy.ingest.IngestModuleIngestJobSettings;
public final class KeywordSearchJobSettings implements IngestModuleIngestJobSettings { public final class KeywordSearchJobSettings implements IngestModuleIngestJobSettings {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private static final boolean DEFAULT_INDEX_TO_SOLR = true;
private final HashSet<String> namesOfEnabledKeywordLists; private final HashSet<String> namesOfEnabledKeywordLists;
private HashSet<String> namesOfDisabledKeywordLists; // Added in version 1.1 private HashSet<String> namesOfDisabledKeywordLists; // Added in version 1.1
@ -42,7 +43,8 @@ public final class KeywordSearchJobSettings implements IngestModuleIngestJobSett
private boolean ocrOnly; private boolean ocrOnly;
private boolean indexToSolr; // use object boolean so older settings missing this setting will deserialize to null.
private Boolean indexToSolr;
/** /**
* Constructs ingest job settings for the keywords search module. * Constructs ingest job settings for the keywords search module.
@ -202,7 +204,7 @@ public final class KeywordSearchJobSettings implements IngestModuleIngestJobSett
} }
boolean isIndexToSolrEnabled() { boolean isIndexToSolrEnabled() {
return indexToSolr; return indexToSolr == null ? DEFAULT_INDEX_TO_SOLR : indexToSolr;
} }
void setIndexToSolrEnabled(boolean enabled){ void setIndexToSolrEnabled(boolean enabled){