Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
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
Community Advisor

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
Community Advisor

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.