property index is not picking in AEM | Community
Skip to main content
Level 2
Aug 10, 2022 10:04 PM UTC
Solved

property index is not picking in AEM

Hi Team,

 

I have created 2 custom property indexes for 2 different custom queries which fetch the content from metadata in DAM,

it was working fine somedays back.

 

We faced some issues with indexing, due to this instance is re-indexed now.

After re-indexed, my custom queries are picking default OOTB index (/oak:index/damAssetLucene) instead of custom index.

How to ensure my queries pick custom index, please suggest.

 

Thanks,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
DEBAL_DAS
DEBAL_DASAccepted solution
New Participant
Aug 11, 2022 4:33 AM UTC

Could you please brief me about your custom queries ,then I will use Oak index Definition generator to generate index structure.

 

After re-indexing, did you check the availability of 2 custom property indexes under /oak:index/damAssetLucene/indexRules/dam:Asset/properties.

 

 

7 replies

joerghoh
Employee
Aug 16, 2022 4:38 PM UTC

Can you please paste the query?

 

 

Translate
DEBAL_DAS
New Participant
Aug 16, 2022 4:41 PM UTC

@chandrareddy , As @joerghoh has suggested please share your query with us.

Translate
DEBAL_DAS
DEBAL_DASAccepted solution
New Participant
Aug 11, 2022 4:33 AM UTC

Could you please brief me about your custom queries ,then I will use Oak index Definition generator to generate index structure.

 

After re-indexing, did you check the availability of 2 custom property indexes under /oak:index/damAssetLucene/indexRules/dam:Asset/properties.

 

 

Translate
Level 2
Aug 11, 2022 1:01 PM UTC

Hi Debal_das,

 

I have below custom queries indexes which worked earlier.

Now instance is re-indexed, after re-indexing queries are taking damAssetLucence which is OOTB one and including path for this is /content/dam.

 

How to ensure my custom indexes work?

 

 

 

Translate
DEBAL_DAS
New Participant
Aug 15, 2022 3:02 PM UTC

I have replicated the process [reindex the custom index , delete the custom index and reinstall the custom index again] on my local AEM 6.5.12 instance and every time it's picking custom index over 

/oak:index/damAssetLucene.

 

Could you please reindex your custom index again and check whether you are getting reindexing completed message like the below one in error.log file -

15.08.2022 20:20:09.455 *INFO* [async-index-update-async] org.apache.jackrabbit.oak.plugins.index.AsyncIndexUpdate [async] Reindexing completed for indexes: [/oak:index/techdoclucene*(3)] in 115.7 ms (115 ms)

Translate