mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Improvement for AVM inedxer performance
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6069 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -449,11 +449,11 @@ public class AVMLuceneIndexerImpl extends AbstractLuceneIndexerImpl<String> impl
|
|||||||
Serializable value = properties.get(propertyName);
|
Serializable value = properties.get(propertyName);
|
||||||
if (indexAllProperties)
|
if (indexAllProperties)
|
||||||
{
|
{
|
||||||
indexProperty(nodeRef, propertyName, value, xdoc, false, endVersion, stringNodeRef);
|
indexProperty(nodeRef, propertyName, value, xdoc, false, properties);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
isAtomic &= indexProperty(nodeRef, propertyName, value, xdoc, true, endVersion, stringNodeRef);
|
isAtomic &= indexProperty(nodeRef, propertyName, value, xdoc, true, properties);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -706,7 +706,7 @@ public class AVMLuceneIndexerImpl extends AbstractLuceneIndexerImpl<String> impl
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected boolean indexProperty(NodeRef banana, QName propertyName, Serializable value, Document doc,
|
protected boolean indexProperty(NodeRef banana, QName propertyName, Serializable value, Document doc,
|
||||||
boolean indexAtomicPropertiesOnly, int version, String path)
|
boolean indexAtomicPropertiesOnly, Map<QName, Serializable> properties)
|
||||||
{
|
{
|
||||||
String attributeName = "@"
|
String attributeName = "@"
|
||||||
+ QName.createQName(propertyName.getNamespaceURI(), ISO9075.encode(propertyName.getLocalName()));
|
+ QName.createQName(propertyName.getNamespaceURI(), ISO9075.encode(propertyName.getLocalName()));
|
||||||
@@ -947,7 +947,7 @@ public class AVMLuceneIndexerImpl extends AbstractLuceneIndexerImpl<String> impl
|
|||||||
// TODO: Use the node locale in preferanced to the system locale
|
// TODO: Use the node locale in preferanced to the system locale
|
||||||
Locale locale = null;
|
Locale locale = null;
|
||||||
|
|
||||||
Serializable localeProperty = avmService.getNodeProperties(version, path).get(
|
Serializable localeProperty = properties.get(
|
||||||
ContentModel.PROP_LOCALE);
|
ContentModel.PROP_LOCALE);
|
||||||
if (localeProperty != null)
|
if (localeProperty != null)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user