diff --git a/config/alfresco/action-services-context.xml b/config/alfresco/action-services-context.xml
index 821560d3a5..349ff953ab 100644
--- a/config/alfresco/action-services-context.xml
+++ b/config/alfresco/action-services-context.xml
@@ -10,7 +10,7 @@
-
+
@@ -414,7 +414,7 @@
-
+
@@ -468,7 +468,7 @@
-
+
false
@@ -477,7 +477,7 @@
-
+
false
diff --git a/config/alfresco/authentication-services-context.xml b/config/alfresco/authentication-services-context.xml
index 77d732f5d6..e65d7ab19d 100644
--- a/config/alfresco/authentication-services-context.xml
+++ b/config/alfresco/authentication-services-context.xml
@@ -86,7 +86,7 @@
-
+
${user.name.caseSensitive}
@@ -182,7 +182,7 @@
-
+
diff --git a/config/alfresco/authority-services-context.xml b/config/alfresco/authority-services-context.xml
index 06bb7fc42c..f62d644e25 100644
--- a/config/alfresco/authority-services-context.xml
+++ b/config/alfresco/authority-services-context.xml
@@ -62,7 +62,7 @@
-
+
diff --git a/config/alfresco/avm-console-context.xml b/config/alfresco/avm-console-context.xml
index b81a726440..b26d31f92c 100644
--- a/config/alfresco/avm-console-context.xml
+++ b/config/alfresco/avm-console-context.xml
@@ -17,13 +17,13 @@
-
+
-
+
diff --git a/config/alfresco/core-services-context.xml b/config/alfresco/core-services-context.xml
index 26d4681a10..d6945f3750 100644
--- a/config/alfresco/core-services-context.xml
+++ b/config/alfresco/core-services-context.xml
@@ -269,6 +269,12 @@
+
+
+
+
+
+
@@ -471,7 +477,7 @@
-
+
@@ -491,7 +497,7 @@
-
+
@@ -675,7 +681,7 @@
-
+
diff --git a/config/alfresco/model-specific-services-context.xml b/config/alfresco/model-specific-services-context.xml
index de1236d733..c27800d16b 100644
--- a/config/alfresco/model-specific-services-context.xml
+++ b/config/alfresco/model-specific-services-context.xml
@@ -10,7 +10,7 @@
-
+
@@ -57,7 +57,7 @@
-
+
diff --git a/config/alfresco/network-protocol-context.xml b/config/alfresco/network-protocol-context.xml
index b0ced99745..490f856887 100644
--- a/config/alfresco/network-protocol-context.xml
+++ b/config/alfresco/network-protocol-context.xml
@@ -77,7 +77,7 @@
-
+
diff --git a/config/alfresco/public-services-context.xml b/config/alfresco/public-services-context.xml
index 75db5d0c25..bc77fc0515 100644
--- a/config/alfresco/public-services-context.xml
+++ b/config/alfresco/public-services-context.xml
@@ -147,6 +147,23 @@
+
+
+
+ org.alfresco.service.cmr.search.SearchService
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -692,7 +709,7 @@
-
+
diff --git a/source/java/org/alfresco/repo/search/impl/lucene/AVMLuceneIndexerAndSearcherFactory.java b/source/java/org/alfresco/repo/search/impl/lucene/AVMLuceneIndexerAndSearcherFactory.java
index a06c8b2600..fd573a694a 100644
--- a/source/java/org/alfresco/repo/search/impl/lucene/AVMLuceneIndexerAndSearcherFactory.java
+++ b/source/java/org/alfresco/repo/search/impl/lucene/AVMLuceneIndexerAndSearcherFactory.java
@@ -38,6 +38,8 @@ import org.alfresco.service.cmr.repository.ContentService;
import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.service.cmr.repository.StoreRef;
import org.alfresco.service.namespace.NamespaceService;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
/**
* Factory for AVM indexers and searchers
@@ -47,6 +49,8 @@ import org.alfresco.service.namespace.NamespaceService;
*/
public class AVMLuceneIndexerAndSearcherFactory extends AbstractLuceneIndexerAndSearcherFactory
{
+ private static Log s_logger = LogFactory.getLog(AVMLuceneIndexerAndSearcherFactory.class);
+
private DictionaryService dictionaryService;
private NamespaceService nameSpaceService;
@@ -61,6 +65,11 @@ public class AVMLuceneIndexerAndSearcherFactory extends AbstractLuceneIndexerAnd
private ContentStore contentStore;
+ public AVMLuceneIndexerAndSearcherFactory()
+ {
+ s_logger.error("Creating AVMLuceneIndexerAndSearcherFactory");
+ }
+
/**
* Set the dictionary service
* @param dictionaryService
diff --git a/source/java/org/alfresco/repo/search/impl/lucene/AVMLuceneIndexerImpl.java b/source/java/org/alfresco/repo/search/impl/lucene/AVMLuceneIndexerImpl.java
index b989304207..648393b4df 100644
--- a/source/java/org/alfresco/repo/search/impl/lucene/AVMLuceneIndexerImpl.java
+++ b/source/java/org/alfresco/repo/search/impl/lucene/AVMLuceneIndexerImpl.java
@@ -250,6 +250,10 @@ public class AVMLuceneIndexerImpl extends AbstractLuceneIndexerImpl impl
{
return docs;
}
+ if (desc.isLayeredDirectory() || desc.isLayeredFile())
+ {
+ return docs;
+ }
List> paths = avmService.getHeadPaths(desc);
if(paths.size() == 0)
diff --git a/source/java/org/alfresco/repo/search/impl/lucene/AbstractLuceneIndexerAndSearcherFactory.java b/source/java/org/alfresco/repo/search/impl/lucene/AbstractLuceneIndexerAndSearcherFactory.java
index a92e74f61d..ed837dfa15 100644
--- a/source/java/org/alfresco/repo/search/impl/lucene/AbstractLuceneIndexerAndSearcherFactory.java
+++ b/source/java/org/alfresco/repo/search/impl/lucene/AbstractLuceneIndexerAndSearcherFactory.java
@@ -83,18 +83,18 @@ public abstract class AbstractLuceneIndexerAndSearcherFactory implements LuceneI
* indexer for each store within a transaction
*/
- private static Map> activeIndexersInGlobalTx = new HashMap>();
+ private Map> activeIndexersInGlobalTx = new HashMap>();
/**
* Suspended global transactions.
*/
- private static Map> suspendedIndexersInGlobalTx = new HashMap>();
+ private Map> suspendedIndexersInGlobalTx = new HashMap>();
/**
* Thread local indexers - used outside a global transaction
*/
- private static ThreadLocal