Optimize the AEM Oak lucene indexes to reduce reindexing time.
Environment
AEM 6.0 + Oak 1.0.16 or later AEM 6.1 and AEM 6.2
You can optimize the Oak Lucene indexes by fine tuning the oak: QueryIndexDefinition with properties such as “includedPaths”, “excludedPaths”, “name” and “indexPath”.
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... |
---|
Steps to optimize the indexes:
1 /oak:index property modifications
"authorizables"``: { ``"includedPaths"``:``"/home?lang=en"``, ``"reindexCount"``: 1, ``"name"``: ``"authorizables"``, ``"compatVersion"``: 2, ``"reindex"``: ``false``, ``"type"``: ``"lucene"``, ``"jcr:primaryType"``: ``"oak:QueryIndexDefinition"``, ``"async"``: ``"async"``, ``"indexPath"``: ``"/oak:index/authorizables?lang=en" ``}, "cqPageLucene"``: { ``"includedPaths"``: ``"/content?lang=en"``, ``"/etc?lang=en" ``, ``"reindexCount"``: 1, ``"name"``: ``"cq:Page"``, ``"compatVersion"``: 2, ``"reindex"``: ``false``, ``"type"``: ``"lucene"``, ``"jcr:primaryType"``: ``"oak:QueryIndexDefinition"``, ``"async"``: ``"async"``, ``"indexPath"``: ``"/oak:index/cqPageLucene?lang=en" ``}, "cqTagLucene"``: { ``"reindexCount"``: 1, ``"name"``: ``"cqTag"``, ``"compatVersion"``: 2, ``"reindex"``: ``false``, ``"type"``: ``"lucene"``, ``"jcr:primaryType"``: ``"oak:QueryIndexDefinition"``, ``"excludedPaths"``: ``"/var?lang=en"``, ``"/tmp?lang=en"``, ``"/etc/replication?lang=en"``, ``"/etc/workflow/instances?lang=en"``, ``"/jcr:system?lang=en" ``, ``"async"``: ``"async"``, ``"indexPath"``: ``"/oak:index/cqTagLucene?lang=en" ``}, "damAssetLucene"``: { ``"includedPaths"``:``"/content/dam?lang=en"``, ``"evaluatePathRestrictions"``: ``true``, ``"reindexCount"``: 1, ``"name"``: ``"damassetlucene"``, ``"compatVersion"``: 2, ``"reindex"``: ``false``, ``"type"``: ``"lucene"``, ``"jcr:primaryType"``: ``"oak:QueryIndexDefinition"``, ``"async"``: ``"async"``, ``"indexPath"``: ``"/oak:index/damAssetLucene?lang=en" ``}, "lucene"``: { ``"reindexCount"``: 1, ``"name"``: ``"lucene"``, ``"reindex"``: ``false``, ``"includePropertyTypes"``:``"String"``, ``"type"``: ``"lucene"``, ``"jcr:primaryType"``: ``"oak:QueryIndexDefinition"``, ``"excludedPaths"``: ``"/var?lang=en"``, ``"/tmp?lang=en"``, ``"/etc/replication?lang=en"``, ``"/etc/workflow/instances?lang=en"``, ``"/jcr:system?lang=en" ``, ``"async"``: ``"async"``, ``"indexPath"``: ``"/oak:index/lucene?lang=en" ``}, "ntBaseLucene"``: { ``"reindexCount"``: 1, ``"name"``: ``"tags"``, ``"compatVersion"``: 2, ``"reindex"``: ``false``, ``"type"``: ``"lucene"``, ``"jcr:primaryType"``: ``"oak:QueryIndexDefinition"``, ``"excludedPaths"``: ``"/var?lang=en"``, ``"/tmp?lang=en"``, ``"/etc/replication?lang=en"``, ``"/etc/workflow/instances?lang=en"``, ``"/jcr:system?lang=en" ``, ``"async"``: ``"async"``, ``"indexPath"``: ``"/oak:index/ntBaseLucene?lang=en" ``}, "workflowDataLucene"``: { ``"reindexCount"``: 1, ``"name"``: ``"workflow"``, ``"compatVersion"``: 2, ``"reindex"``: ``false``, ``"type"``: ``"lucene"``, ``"jcr:primaryType"``: ``"oak:QueryIndexDefinition"``, ``"excludedPaths"``: ``"/var?lang=en"``, ``"/tmp?lang=en"``, ``"/etc/replication?lang=en"``, ``"/jcr:system?lang=en" ``, ``"async"``: ``"async"``, ``"indexPath"``: ``"/oak:index/workflowDataLucene?lang=en" ``} |
---|