How to complete full re-indexing in AEM

How to complete full re-indexing in AEM

Environment

AEM 6.1, 6.2, 6.3, 6.4

How to complete full re-indexing in AEM

 

In order to complete full re-indexing on AEM the oak-run tool should be leveraged with checkpoints argument.  The 'checkpoints' mode can be used to list or remove repository checkpoints.

To start this mode, use:

$ java -jar oak-run-*.jar checkpoints { /path/to/oak/repository | mongodb://host:port/database } [list|rm-all|rm-unreferenced|rm <checkpoint>]

Details of modes:

'list' - Set as default when nothing is specified, it will list all existing checkpoints.

'rm-all' - Will wipe clean the 'checkpoints' node

'rm-unreferenced' - Will remove all checkpoints except the one referenced from the async indexer (/:async@async).

'rm ' - Will remove a specific checkpoint from the repository.

Note: This process is to be followed when facing a SegmentNotFoundException when recommended by Adobe Customer Care. 

Example:

java -Dtar.memoryMapped=true -Xms8g -Xmx8g -jar $oakrun checkpoints $aemfolder/repository/segmentstore rm-all

In some instances Adobe Customer Care may recommend to checkpoints rm-all along with offline compaction:

Download

Information to provide when raising a ticket

When raising a support ticket in the support portal, qualify the issue as best as possible following guidelines in the following KB article.

 Adobe

Get help faster and easier

New user?

Adobe MAX 2024

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online

Adobe MAX 2024

Adobe MAX

The Creativity Conference

Oct 14–16 Miami Beach and online