ACS Commons service Ensure oak index causing indexing to restart | Community
Skip to main content
June 9, 2022
Solved

ACS Commons service Ensure oak index causing indexing to restart

  • June 9, 2022
  • 1 reply
  • 1511 views

I am using AEM 6.4.8 and acs aem commons version is 5.1.2. There is a requirement in the code to create  custom oak indexes. So, I am using a service "Ensure oak Index" which is part of acs aem commons. This service is being used to sync my custom oak indexes to aem oak indexes.

 

Now, the issue is everytime when we restart aem, then indexing also restarts. Is there a way to stop reindexing again when aem restarts.

or Is their a way to sync our custom oak indexes without using ensure oak Index.

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 Anmol_Bhardwaj

Hi @rgarg ,

 

Do you have the forceReindex property set to true by any chance?

On create or update, the Oak Index can be marked to be immediately re-indexed by setting @forceReindex=true`.

 

If not, then you can try to ignore the same property & others which contribute to the same like : 

  • recreateOnUpdate
  • forceReindex
 properties.ignore="[myDescription,ignoreMe]

 

1 reply

Anmol_Bhardwaj
Community Advisor
Anmol_BhardwajCommunity AdvisorAccepted solution
Community Advisor
June 14, 2022

Hi @rgarg ,

 

Do you have the forceReindex property set to true by any chance?

On create or update, the Oak Index can be marked to be immediately re-indexed by setting @forceReindex=true`.

 

If not, then you can try to ignore the same property & others which contribute to the same like : 

  • recreateOnUpdate
  • forceReindex
 properties.ignore="[myDescription,ignoreMe]