Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

Do we have any easy way to manage the indexation ?

Avatar

Level 4

Was there any existing way to manage or create the custom index in AEM and how do we add anew metadata filed to index?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 7

For creating and managing custom queryIndexDefinition you can refer the documentation.
For reference, when you want to add custom index into a definition for a new metadata field :
1. Goto /oak:index/<customIndexDefinition>/indexRules/cq:Page/properties/
2. Create a new nt:unstructured node by the name of the new field to be indexed (like pageTitle)
3. Save node
4. Add properties to node -> (name, String, jcr:content/<fieldName>) (propertyIndex, Boolean, true)
5. Save all and goto /oak:index/<customIndexDefinition> 
6. Set reindex property to true and save.
The pages would be indexed wrt new metadata field.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 7

For creating and managing custom queryIndexDefinition you can refer the documentation.
For reference, when you want to add custom index into a definition for a new metadata field :
1. Goto /oak:index/<customIndexDefinition>/indexRules/cq:Page/properties/
2. Create a new nt:unstructured node by the name of the new field to be indexed (like pageTitle)
3. Save node
4. Add properties to node -> (name, String, jcr:content/<fieldName>) (propertyIndex, Boolean, true)
5. Save all and goto /oak:index/<customIndexDefinition> 
6. Set reindex property to true and save.
The pages would be indexed wrt new metadata field.