Entorno
Problema/Síntomas
Optimice los índices de Oak Lucene de AEM para reducir el tiempo de reindexación.
Puede optimizar los índices de Oak Lucene ajustando el roble: QueryIndexDefinition
con propiedades como includedPaths
, excludedPaths
, name
y indexPath
.
includedPaths
y excludedPaths
las propiedades restringen las rutas que atraviesa el índice al reindexar y a qué rutas escucha para las actualizaciones de índice.name
y indexPath
las propiedades facilitan la comprensión de los registros de índice, ya que etiquetarían los mensajes de registro con la ruta o el nombre del índice. Por ejemplo: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... |
---|
Pasos para optimizar los índices:
/oak:index
. includedPaths
y excludedPaths
las propiedades deben multi-value String (String)
.1 /oak:modificaciones de la propiedad 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" } |
---|