Hello,
We created a custom index like the one in attached file to increase search speed,
but if we install this index, we will not be able to see all template folders.
If you remove this index, the template folder will appear.
http://localhost:4502/libs/wcm/core/content/sites/templates.html/conf
Even if we check the error log file, there are no errors or warnings related to this.
I'm curious as to why these things happen and what's wrong with the index above.
I would like to hear the opinions of experts.
Thanks in advance.
--------------------------
Solved! Go to Solution.
Views
Replies
Total Likes
OOTB cqPageLucene excludes whats not required. Thus, /content and /conf are included in the Index
Please try with following changes:
1. Add /conf path of templates to the list
includedPaths="[/content/aaa,/content/data,/content/bbb,/content/ccc,/content/ddd,/content/eee,/content/fff,/content/ggg,/content/hhh,/content/iii,/content/jjj,/content/kkk,/content/lll,/content/mmm]"
2. Add queryPaths property, with same value as includedPaths. Example:
"queryPaths":[/content/aaa,/content/data,/content/bbb,/content/ccc,/content/ddd,/content/eee,/content/fff,/content/ggg,/content/hhh,/content/iii,/content/jjj,/content/kkk,/content/lll,/content/mmm]"
I tried to upload this AEM package file which contains this custom index xml file to help you understand better, but uploading xml files is not allowed.
Hi @keehwan1 ,
The issue you're facing, where template folders disappear when using a custom index, is likely due to the way your custom index is configured. Let's break down what might be happening:
Included Paths: In your custom index definition, you have specified the includedPaths property. This property determines which paths are indexed by the Lucene index. In your case, you have explicitly listed paths such as /content/aaa, /content/bbb, etc. If the template folders are located outside of these paths, they won't be indexed by your custom index.
Aggregates and Index Rules: Within your custom index definition, you've specified aggregates and index rules for different node types like cq:Page, nt:file, and cq:PageContent. These rules determine which properties of nodes are indexed. If the template folders or their properties are not included in these rules, they won't be indexed properly.
Restrictions in Index Definition: The evaluatePathRestrictions property is set to true in your index definition. This means that the index will only include nodes that match the specified paths in the includedPaths property. If a node doesn't match any of these paths, it won't be indexed.
To ensure that the template folders are indexed and visible, you need to review your custom index configuration:
If you're still experiencing issues after reviewing your custom index configuration, you may need to consult with an AEM expert or Adobe Support for further assistance, as the problem could be related to specific nuances of your AEM environment.
OOTB cqPageLucene excludes whats not required. Thus, /content and /conf are included in the Index
Please try with following changes:
1. Add /conf path of templates to the list
includedPaths="[/content/aaa,/content/data,/content/bbb,/content/ccc,/content/ddd,/content/eee,/content/fff,/content/ggg,/content/hhh,/content/iii,/content/jjj,/content/kkk,/content/lll,/content/mmm]"
2. Add queryPaths property, with same value as includedPaths. Example:
"queryPaths":[/content/aaa,/content/data,/content/bbb,/content/ccc,/content/ddd,/content/eee,/content/fff,/content/ggg,/content/hhh,/content/iii,/content/jjj,/content/kkk,/content/lll,/content/mmm]"
@keehwan1 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Views
Replies
Total Likes