Command line option for "version" following SEARCH-228

This commit is contained in:
Gethin James
2016-12-01 10:58:40 +01:00
parent 0241b5b513
commit ae6462c430
2 changed files with 7 additions and 2 deletions
@@ -122,6 +122,8 @@ public class AlfrescoCoreAdminHandler extends CoreAdminHandler
*/
protected void setupNewDefaultCores(String createDefaultCores)
{
final String VERSION_STORE_PROTOCOL = "versionStore";
final String VERSION_STORE_ID = "version2Store";
SolrQueryResponse response = new SolrQueryResponse();
try
@@ -138,8 +140,11 @@ public class AlfrescoCoreAdminHandler extends CoreAdminHandler
case "alfresco":
newDefaultCore("alfresco", StoreRef.STORE_REF_WORKSPACE_SPACESSTORE, DEFAULT_TEMPLATE, null, response);
break;
case "version":
newDefaultCore("version", new StoreRef(VERSION_STORE_PROTOCOL, VERSION_STORE_ID), DEFAULT_TEMPLATE, null, response);
break;
default:
log.error("Invalid '"+ALFRESCO_DEFAULTS+"' permitted values are alfresco,archive");
log.error("Invalid '"+ALFRESCO_DEFAULTS+"' permitted values are alfresco,archive,version");
}
}
}
@@ -28,7 +28,7 @@ services:
SOLR_SOLR_HOST: solr6
#SOLR_SOLR_PORT: 8983
#Create the default alfresco and archive cores
SOLR_CREATE_ALFRESCO_DEFAULTS : alfresco,archive
SOLR_CREATE_ALFRESCO_DEFAULTS : alfresco,archive,version
ports:
- "8083:8183" #Browser port
- "1044:1044" #Java debugging