Come ottimizzare gli indici Oak Lucene per ridurre il tempo di indicizzazione

Ultimo aggiornamento: 2022-11-15

Descrizione

Ambiente

  • Adobe Experience Manager 6.0 + Oak 1.0.16 o successivo
  • Adobe Experience Manager 6.1 e 6.2

Problema/Sintomi
Ottimizza gli indici Oak Lucene AEM per ridurre il tempo di reindicizzazione.

Risoluzione

Puoi ottimizzare gli indici Oak Lucene regolando accuratamente la quercia: QueryIndexDefinition con proprietà quali includedPaths, excludedPaths, name e indexPath.

  • includedPaths e excludedPaths le proprietà limitano i percorsi che l'indice attraversa durante la reindicizzazione e a quali percorsi ascolta per gli aggiornamenti dell'indice.
  • name e indexPath le proprietà facilitano la comprensione dei registri di indice, in quanto taggerebbero i messaggi di log con il percorso o il nome dell'indice. Ad esempio:
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...

Passaggi per ottimizzare gli indici:

  1. Vai a http://aem-host:port/crx/de/index.jsp e accedi come amministratore.
  2. Sfoglia per /oak:index.
  3. Aggiungi le proprietà evidenziate di seguito 1 agli indici corrispondenti. La includedPaths e excludedPaths le proprietà devono essere multi-value String (String).
  4. Fai clic su Salva tutto in CRXDe.

1 /oak:modifiche delle proprietà dell'indice

"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"

     }

In questa pagina