인덱싱 시간을 줄이기 위해 Oak Lucene 인덱스를 최적화하는 방법
includedPaths 및 excludedPaths 속성을 사용하여 Oak Lucene 인덱스를 최적화합니다.
설명 description
환경
- Adobe Experience Manager 6.0 + Oak 1.0.16 이상
- Adobe Experience Manager 6.1 및 6.2
문제/증상
AEM Oak Lucene 인덱스를 최적화하여 리인덱싱 시간을 단축할 수 있습니다.
해결 방법 resolution
includedPaths, excludedPaths, name 및 indexPath과(와) 같은 속성으로 oak QueryIndexDefinition을(를) 미세 조정하여 Oak Lucene 인덱스를 최적화할 수 있습니다.
includedPaths및excludedPaths속성은 리인덱싱할 때 색인이 통과하는 경로와 색인 업데이트를 수신하는 경로를 제한합니다.name및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...인덱스를 최적화하는 단계:
- http://aem-host:port/crx/de/index.jsp(으)로 이동하여 관리자로 로그인합니다.
/oak:index(으)로 이동합니다.[1]아래에 강조 표시된 속성을 해당 인덱스에 추가합니다.includedPaths및excludedPaths속성은multi-value String (String[ ] )이어야 합니다.- CRXDe에서 모두 저장 을 클릭합니다.
[ 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" }recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f