mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 17:06:16 +00:00
Removed references to upgrading index
This commit is contained in:
parent
20b304b2f3
commit
d077283a6c
@ -182,7 +182,7 @@ public class SolrSearchService implements KeywordSearchService, AutopsyService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates/opens/upgrades the Solr core/text index for a case
|
* Creates/opens the Solr core/text index for a case
|
||||||
*
|
*
|
||||||
* @param context The case context.
|
* @param context The case context.
|
||||||
*
|
*
|
||||||
@ -253,8 +253,8 @@ public class SolrSearchService implements KeywordSearchService, AutopsyService {
|
|||||||
// found existing index(es) but none were for latest Solr version and schema version
|
// found existing index(es) but none were for latest Solr version and schema version
|
||||||
progressUnitsCompleted++;
|
progressUnitsCompleted++;
|
||||||
progress.progress(Bundle.SolrSearch_indentifyingIndex_msg(), progressUnitsCompleted);
|
progress.progress(Bundle.SolrSearch_indentifyingIndex_msg(), progressUnitsCompleted);
|
||||||
Index indexToUpgrade = IndexFinder.identifyIndexToUse(indexes);
|
Index indexToUse = IndexFinder.identifyIndexToUse(indexes);
|
||||||
if (indexToUpgrade == null) {
|
if (indexToUse == null) {
|
||||||
// unable to find index that can be used
|
// unable to find index that can be used
|
||||||
throw new AutopsyServiceException("Unable to find index that can be used for this case");
|
throw new AutopsyServiceException("Unable to find index that can be used for this case");
|
||||||
}
|
}
|
||||||
@ -264,7 +264,7 @@ public class SolrSearchService implements KeywordSearchService, AutopsyService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
double currentSolrVersion = NumberUtils.toDouble(IndexFinder.getCurrentSolrVersion());
|
double currentSolrVersion = NumberUtils.toDouble(IndexFinder.getCurrentSolrVersion());
|
||||||
double indexSolrVersion = NumberUtils.toDouble(indexToUpgrade.getSolrVersion());
|
double indexSolrVersion = NumberUtils.toDouble(indexToUse.getSolrVersion());
|
||||||
if (indexSolrVersion == currentSolrVersion) {
|
if (indexSolrVersion == currentSolrVersion) {
|
||||||
// latest Solr version but not latest schema. index should be used in read-only mode
|
// latest Solr version but not latest schema. index should be used in read-only mode
|
||||||
if (RuntimeProperties.runningWithGUI()) {
|
if (RuntimeProperties.runningWithGUI()) {
|
||||||
@ -286,7 +286,7 @@ public class SolrSearchService implements KeywordSearchService, AutopsyService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// proceed with case open
|
// proceed with case open
|
||||||
currentVersionIndex = indexToUpgrade;
|
currentVersionIndex = indexToUse;
|
||||||
} else {
|
} else {
|
||||||
// index needs to be upgraded to latest supported version of Solr
|
// index needs to be upgraded to latest supported version of Solr
|
||||||
throw new AutopsyServiceException("Unable to find index to use for Case open");
|
throw new AutopsyServiceException("Unable to find index to use for Case open");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user