mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
Command line option for "version" following SEARCH-228
This commit is contained in:
+6
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user