property index is not picking in AEM | Community
Skip to main content
Level 2
August 10, 2022
Solved

property index is not picking in AEM

  • August 10, 2022
  • 2 replies
  • 2243 views

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.
Best answer by DEBAL_DAS

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.

 

 

2 replies

DEBAL_DAS
DEBAL_DASAccepted solution
New Member
August 11, 2022

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.

 

 

Debal Das, Senior AEM Consultant
Level 2
August 11, 2022

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?

 

 

 

DEBAL_DAS
New Member
August 15, 2022

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)

Debal Das, Senior AEM Consultant
joerghoh
Adobe Employee
Adobe Employee
August 16, 2022

Can you please paste the query?

 

 

DEBAL_DAS
New Member
August 16, 2022

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

Debal Das, Senior AEM Consultant