Add the custom oak lucene index to code base | Community
Skip to main content
Level 4
March 5, 2024
Solved

Add the custom oak lucene index to code base

  • March 5, 2024
  • 2 replies
  • 2203 views

Hi,

I am planning to get the prod custom lucene index content to merge in the code base. Please suggest the folder path or process for this.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Hi @beaula123 
It should be inside ui.apps but make sure you have enabled the allowIndexDefinitions in ui.apps POM as well

 

<allowIndexDefinitions>true</allowIndexDefinitions>

 

you can also create separate module for index example: https://github.com/valtech/aem-easy-content-upgrade/tree/master/oak.index 


2 replies

AMANATH_ULLAH
Community Advisor
Community Advisor
March 5, 2024

@beaula123 

Custom index should be added in the path ui.apps/src/main/content/jcr_root/_oak_index

and add an entry in filter.xml in ui.apps folder (ui.apps/src/main/content/META-INF/vault/filter.xml)

Please check the below link for the steps

https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/operations/indexing.html?lang=en#deploying-custom-index-definitions

Amanath Ullah
arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
March 5, 2024

Hi @beaula123 
It should be inside ui.apps but make sure you have enabled the allowIndexDefinitions in ui.apps POM as well

 

<allowIndexDefinitions>true</allowIndexDefinitions>

 

you can also create separate module for index example: https://github.com/valtech/aem-easy-content-upgrade/tree/master/oak.index 


Arun Patidar
Beaula123Author
Level 4
March 5, 2024

Hi @arunpatidar,

 

Is this process works for the non cloud version of AEM?

arunpatidar
Community Advisor
Community Advisor
March 5, 2024

yes, its the same.

Arun Patidar