Environnement
Problème/Symptômes
Optimisez les index AEM Oak Lucene pour réduire le temps de réindexation.
Vous pouvez optimiser les index Oak Lucene en affinant le fichier oak : QueryIndexDefinition
avec des propriétés telles que includedPaths
, excludedPaths
, name
et indexPath
.
includedPaths
et excludedPaths
Les propriétés limitent les chemins parcourus par l’index lors de la réindexation et les chemins qu’il écoute pour les mises à jour de l’index.name
et indexPath
Les propriétés facilitent la compréhension des journaux d’index, car elles baliseraient les messages du journal avec le chemin ou le nom de l’index. Par exemple :30.01.2017 14:07:12.934 *DEBUG* pool-8-thread-2 org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor damassetlucene( /oak :index /damAssetLucene ) = Indexed 9000 nodes... |
---|
Procédure d’optimisation des index:
/oak:index
. includedPaths
et excludedPaths
Les propriétés doivent être multi-value String (String)
.Modifications des propriétés 1 /oak:index
"authorizables" : { "includedPaths" : "/home" , "reindexCount" : 1, "name" : "authorizables" , "compatVersion" : 2, "reindex" : false , "type" : "lucene" , "jcr:primaryType" : "oak:QueryIndexDefinition" , "async" : "async" , "indexPath" : "/oak:index/authorizables" }, "cqPageLucene" : { "includedPaths" : "/content" , "/etc" , "reindexCount" : 1, "name" : "cq:Page" , "compatVersion" : 2, "reindex" : false , "type" : "lucene" , "jcr:primaryType" : "oak:QueryIndexDefinition" , "async" : "async" , "indexPath" : "/oak:index/cqPageLucene" }, "cqTagLucene" : { "reindexCount" : 1, "name" : "cqTag" , "compatVersion" : 2, "reindex" : false , "type" : "lucene" , "jcr:primaryType" : "oak:QueryIndexDefinition" , "excludedPaths" : "/var" , "/tmp" , "/etc/replication" , "/etc/workflow/instances" , "/jcr:system" , "async" : "async" , "indexPath" : "/oak:index/cqTagLucene" }, "damAssetLucene" : { "includedPaths" : "/content/dam" , "evaluatePathRestrictions" : true , "reindexCount" : 1, "name" : "damassetlucene" , "compatVersion" : 2, "reindex" : false , "type" : "lucene" , "jcr:primaryType" : "oak:QueryIndexDefinition" , "async" : "async" , "indexPath" : "/oak:index/damAssetLucene" }, "lucene" : { "reindexCount" : 1, "name" : "lucene" , "reindex" : false , "includePropertyTypes" : "String" , "type" : "lucene" , "jcr:primaryType" : "oak:QueryIndexDefinition" , "excludedPaths" : "/var" , "/tmp" , "/etc/replication" , "/etc/workflow/instances" , "/jcr:system" , "async" : "async" , "indexPath" : "/oak:index/lucene" }, "ntBaseLucene" : { "reindexCount" : 1, "name" : "tags" , "compatVersion" : 2, "reindex" : false , "type" : "lucene" , "jcr:primaryType" : "oak:QueryIndexDefinition" , "excludedPaths" : "/var" , "/tmp" , "/etc/replication" , "/etc/workflow/instances" , "/jcr:system" , "async" : "async" , "indexPath" : "/oak:index/ntBaseLucene" }, "workflowDataLucene" : { "reindexCount" : 1, "name" : "workflow" , "compatVersion" : 2, "reindex" : false , "type" : "lucene" , "jcr:primaryType" : "oak:QueryIndexDefinition" , "excludedPaths" : "/var" , "/tmp" , "/etc/replication" , "/jcr:system" , "async" : "async" , "indexPath" : "/oak:index/workflowDataLucene" } |
---|