From 1cc565d659db2c62c1eb0404f9a65073597ad80a Mon Sep 17 00:00:00 2001 From: Ahmed Owian Date: Fri, 3 Oct 2014 04:46:29 +0000 Subject: [PATCH] ACE-2092: EOL Lucene - 1) Removed all "lucene" stuff from the admin screens. - ERRORed on sub-system start up that lucene is unsupported - 3) Hid "lucene" subsystem from JMX so that it is not registered. - TODO: - 2) Rename "lucene" to "buildonly" in core-services-context.xml - 4) Change the default in repository.properties to "noindex" - 5) Fix the build environment via Samuel - Add to ERROR message about upgrading to Solr git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@86346 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- config/alfresco/core-services-context.xml | 3 +-- config/alfresco/messages/system-messages.properties | 1 + .../impl/lucene/fts/FullTextSearchIndexerBootstrapBean.java | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) 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) {