Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM OAK Query- Indexing

Avatar

Avatar
Validate 10
Level 4
mjb54261515
Level 4

Likes

33 likes

Total Posts

132 posts

Correct Reply

32 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 25
View profile

Avatar
Validate 10
Level 4
mjb54261515
Level 4

Likes

33 likes

Total Posts

132 posts

Correct Reply

32 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 25
View profile
mjb54261515
Level 4

15-05-2019

Hello, I have custom Indexing for my project. Currently I am manually running this indexing and it works fine. Is there a way to do this automated or using scheduler. Please let me know  your inputs

Replies

Avatar

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

188 likes

Total Posts

356 posts

Correct Reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

188 likes

Total Posts

356 posts

Correct Reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Vish_dhaliwal
Employee

15-05-2019

Hello,

Is this Async index?

Async indexing jobs are by default configured to run at an interval of 5 seconds which can be configured via the OSGi config -> org.apache.jackrabbit.oak.plugins.index.AsyncIndexerService.

Regards,

Vishu

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

380 likes

Total Posts

868 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

380 likes

Total Posts

868 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

15-05-2019

If you are changing the index definition, then you need to manually reindex it otherwise incremental indexing is performed based on the type of index:

async -> Every 5 Seconds

fulltext-aync -> Every 5 seconds

nrt -> Real-time index update with no delays

Also, Changing the "Async Indexer Configs" at "OSGi config -> org.apache.jackrabbit.oak.plugins.index.AsyncIndexerService" will have a performance impact if you change it to less than 5 and you might not get expected results if you change it to more than 5 as almost every AEM console uses aync,fulltext-aync index types.

This config should only be changed if recommended by Adobe Engineer after analyzing the complete use case.

Avatar

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

188 likes

Total Posts

356 posts

Correct Reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

188 likes

Total Posts

356 posts

Correct Reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Vish_dhaliwal
Employee

15-05-2019

Hello,

Why do you need to run indexing manually at first place?

Avatar

Avatar
Validate 10
Level 4
mjb54261515
Level 4

Likes

33 likes

Total Posts

132 posts

Correct Reply

32 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 25
View profile

Avatar
Validate 10
Level 4
mjb54261515
Level 4

Likes

33 likes

Total Posts

132 posts

Correct Reply

32 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 25
View profile
mjb54261515
Level 4

15-05-2019

Yes I updated my custom index to async. I dont know we have osgi config-> org.apache.jackrabbit.oak.plugins.index.AsyncIndexerService

Is there away to validate the that AsyncIndexerService completed re-indexing for my custom index. in logs ?

Thank you

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

380 likes

Total Posts

868 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

380 likes

Total Posts

868 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

15-05-2019

Please ignore the "AsyncIndexerService" config as it is not applicable here. You can setup a DEBUG logger on the following classes to capture more info about index updates to your custom index:

  • org.apache.jackrabbit.oak.plugins.index

Avatar

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

188 likes

Total Posts

356 posts

Correct Reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

188 likes

Total Posts

356 posts

Correct Reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Vish_dhaliwal
Employee

15-05-2019

Yes, I provided the config to let you know how the indexer service is configured by default.

To check the Async index stats, you can leverage IndexStats mbean http://localhost:4502/system/console/jmx/org.apache.jackrabbit.oak%3Aname%3Dasync%2Ctype%3DIndexStat...

But this will not provide informaiton specifically about your custom index.

Debug level logs for the appender: org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate and org.apache.jackrabbit.oak.plugins.index.IndexUpdate might be helpful to know whats happening with reindexing.  This would really fill up logs though.