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
oak を微調整することで、Oak Lucene インデックスを最適化できます。 QueryIndexDefinition
次のようなプロパティを持つ includedPaths
, excludedPaths
, name
および indexPath
.
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]
を対応するインデックスに追加します。 TheincludedPaths
および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