diff --git a/config/alfresco/core-services-context.xml b/config/alfresco/core-services-context.xml index ef6a591f95..ba939bc2ec 100644 --- a/config/alfresco/core-services-context.xml +++ b/config/alfresco/core-services-context.xml @@ -1075,8 +1075,7 @@ - managed - lucene + hidden diff --git a/config/alfresco/messages/system-messages.properties b/config/alfresco/messages/system-messages.properties index 02f5128b54..1c3d2a6e0d 100644 --- a/config/alfresco/messages/system-messages.properties +++ b/config/alfresco/messages/system-messages.properties @@ -5,6 +5,7 @@ system.err.property_not_set=Property ''{0}'' has not been set: {1} ({2}) system.err.duplicate_name=Duplicate child name not allowed: {0} +system.err.lucene_not_supported=The lucene search subsystem is not supported. # Bootstrap configuration check messages diff --git a/source/java/org/alfresco/repo/search/impl/lucene/fts/FullTextSearchIndexerBootstrapBean.java b/source/java/org/alfresco/repo/search/impl/lucene/fts/FullTextSearchIndexerBootstrapBean.java index 6b1a81b28e..902e8ed2a9 100644 --- a/source/java/org/alfresco/repo/search/impl/lucene/fts/FullTextSearchIndexerBootstrapBean.java +++ b/source/java/org/alfresco/repo/search/impl/lucene/fts/FullTextSearchIndexerBootstrapBean.java @@ -26,6 +26,7 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.context.ApplicationEvent; import org.springframework.extensions.surf.util.AbstractLifecycleBean; +import org.springframework.extensions.surf.util.I18NUtil; public class FullTextSearchIndexerBootstrapBean extends AbstractLifecycleBean { @@ -38,6 +39,10 @@ public class FullTextSearchIndexerBootstrapBean extends AbstractLifecycleBean @Override protected void onBootstrap(ApplicationEvent event) { + // Internationalizes the message + String errorMsg = I18NUtil.getMessage("system.err.lucene_not_supported"); + log.error(errorMsg); + List storeRefs = nodeService.getStores(); for (StoreRef storeRef : storeRefs) {