From fa7854a9aad5d095887efa8025e09f2cdc7b243b Mon Sep 17 00:00:00 2001 From: Steven Glover Date: Mon, 31 Oct 2011 09:54:00 +0000 Subject: [PATCH] Fix for ALF-11042 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@31556 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- config/alfresco/script-services-context.xml | 3 +++ source/java/org/alfresco/repo/jscript/Search.java | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/config/alfresco/script-services-context.xml b/config/alfresco/script-services-context.xml index c6e0a4667a..92e659f9c3 100644 --- a/config/alfresco/script-services-context.xml +++ b/config/alfresco/script-services-context.xml @@ -102,6 +102,9 @@ search + + + ${index.subsystem.name} diff --git a/source/java/org/alfresco/repo/jscript/Search.java b/source/java/org/alfresco/repo/jscript/Search.java index 8745edf3a1..25cdcd71c5 100644 --- a/source/java/org/alfresco/repo/jscript/Search.java +++ b/source/java/org/alfresco/repo/jscript/Search.java @@ -77,6 +77,7 @@ public class Search extends BaseScopableProcessorExtension /** Repository helper */ protected Repository repository; + private String searchSubsystem; /** * Set the default store reference @@ -112,10 +113,19 @@ public class Search extends BaseScopableProcessorExtension { this.repository = repository; } - + + public void setSearchSubsystem(String searchSubsystem) + { + this.searchSubsystem = searchSubsystem; + } // JavaScript API + public String getSearchSubsystem() + { + return searchSubsystem; + } + /** * Find a single Node by the Node reference *