Optimieren von Oak Lucene-Indizes zur Verkürzung der Indizierungszeit
Optimieren Sie die Oak Lucene-Indizes mithilfe der Eigenschaften „includedPaths“ und „excludedPaths“.
Beschreibung description
Umgebung
- Adobe Experience Manager 6.0 + Oak 1.0.16 oder höher
- Adobe Experience Manager 6.1 und 6.2
Problem/Symptome
Optimieren Sie die AEM Oak Lucene-Indizes, um die Neuindizierungszeit zu verkürzen.
Auflösung resolution
Sie können die Oak Lucene-Indizes optimieren, indem Sie oak: QueryIndexDefinition
mit Eigenschaften wie includedPaths
, excludedPaths
, name
und indexPath
optimieren.
includedPaths
- undexcludedPaths
beschränken, welche Pfade der Index bei der Neuindizierung durchläuft und auf welche Pfade er bei Indexaktualisierungen wartet.name
- undindexPath
-Eigenschaften machen Indexprotokolle verständlicher, da sie die Protokollmeldungen mit dem Pfad oder Namen des Index versehen würden. z. B.:
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...
Schritte zur Optimierung der Indizes:
- Navigieren Sie zu http://aem-host:port/crx/de/index.jsp und melden Sie sich als Administrator an.
- Navigieren Sie zu
/oak:index
. - Fügen Sie die unter
[
1 hervorgehobenen Eigenschaften]
die entsprechenden Indizes hinzu. DieincludedPaths
undexcludedPaths
Eigenschaften solltenmulti-value String (String[ ] )
sein. - Klicken Sie CRXDe auf Alle speichern“.
[
1]
/oak:index, Eigenschaftsänderungen
"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