Hi @Keerthana_H_N,
Can you check which index being used with on of the below option?
1. Query Builder Debug (easiest)
-
Open Query Builder Debug:
https://<author-stage-host>/libs/cq/search/content/querydebug.html
-
Enter your query params (e.g., path, type=dam:Asset, your property/values).
-
Check Explain and click Execute.
-
In the Plan / Explain output you should see something like:
lucene:damAssetLucene-12-custom-5(/oak:index/damAssetLucene-12-custom-5)
If it shows -custom-2, your search is still hitting the old index.
2. Query Builder JSON (straight URL)
You can hit the JSON servlet and ask for an explain:
https://<author-stage-host>/bin/querybuilder.json?
path=/content/dam
&type=dam:Asset
&property=jcr:content/metadata/dc:identifier
&property.value=<YOUR_ASSET_ID>
&p.limit=1
&explain=true
Look for "explain" in the JSON; it will include the chosen index name (expect damAssetLucene-12-custom-5).
3. SQL-2 “Explain” (alternative)
-
Open Query Performance tool:
https://<author-stage-host>/libs/granite/operations/content/diagnosistools/queryPerformance.html
-
Choose SQL-2, paste an equivalent query, tick Explain.
-
The plan line will name the index (again, expect damAssetLucene-12-custom-5).
Santosh Sai

