Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

Map-level Search and Replace is returning 0 results all the time

Avatar

Level 4

Hello,

Map-level Search and Replace is returning 0 results all the time. Our UUID version AEM Guides (4.6.0.3).

Beaula123_0-1746438912165.png

 

I tried below steps.

1. reindexed the /oak:index/lucene

2. reindexed /oak:index/damAssetLucene

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hi @DivrajSingh ,

/oak:index/damAssetLucene/tika node has "config.xml" causing the index to not include any assets with mime type (dc:format) "application/xml" to not be included in the index, this results in the query for referenced dita content to return zero results.

 

Added DefaultParser for <mime>application/xml</mime> fixed the issue and it actually extract and index the dita content. After reindexing the damAssetLucene with updated oak:index/damAssetLucene/tika/config.xml fixed the issue. Now the search and replace functionality returning the results. 

 

Thank you..

View solution in original post

3 Replies

Avatar

Community Advisor

Hi @Beaula123 ,

Root Cause (Most Common):

AEM Guides Search and Replace depends heavily on DITA Map parsing and indexing. If:

  - The map is not associated with a DITA-OT map type, or

  - References within the map are broken or incomplete, or

  - The search engine configuration isn't detecting UUID-based maps,

then the tool will fail silently and show “0 files found”.

Steps to Fix:

1. Confirm DITA Map Association

Ensure the selected map is correctly typed as a DITA Map.

Go to CRXDE: /content/dam/broadcom/techdocs/ctp-test/Beaula/choice-table-test.ditamap

Confirm that it has this property:

jcr:primaryType = dam:Asset
dc:format = application/dita+xml; format=map

If not, right-click in CRXDE and update the dc:format manually to:

application/dita+xml; format=map

2. Ensure Map Contains Valid References

  - Open the map in Web Editor and confirm it successfully references topics.

  - Broken references (red exclamation) will prevent indexing.

3. Reindex Map Content from AEM Guides UI

  - Go to Tools → AEM Guides → Content Indexing

  - Select the DITA map in question and click “Reindex Map”

4. Check and Restart the Async Indexing Job

Sometimes background jobs get stuck. Do the following:

  - Go to: http://<host>:<port>/system/console/status-slingjobs

  - Look for any stuck/failed jobs related to DITA or indexing.

  - Clear and restart them if needed.

5. Check Lucene Query Limits

Sometimes Lucene result limits can truncate queries:

  - Go to /system/console/configMgr

  - Look for "Apache Jackrabbit Oak QueryEngineSettingsService"

  - Increase the limit:

  - Query Limit: 500000

    - Read Limit: 500000

    - Save and test again.

6. Enable Debug Logs Temporarily

If still stuck, enable logs for detailed output:

  - Log level: DEBUG

  - Class: com.adobe.fmdita.search

Use /system/console/slinglog to do this.

Regards,
Amit

Avatar

Employee

@Beaula123 : can you check on any/some of the topics of the map (in jcr:content) if following properties are getting added after post processing:

 - guidesParentMaps

 - guidesDirectParentMaps

 

If not follow the steps given in upgrade instructions see section "Steps to reindex existing content" 

And also check if the configuration "Disable guidesParentMaps Processing" is set - if yes then you need to uncheck this config under com.adobe.fmdita.config.ConfigManager

Avatar

Correct answer by
Level 4

Hi @DivrajSingh ,

/oak:index/damAssetLucene/tika node has "config.xml" causing the index to not include any assets with mime type (dc:format) "application/xml" to not be included in the index, this results in the query for referenced dita content to return zero results.

 

Added DefaultParser for <mime>application/xml</mime> fixed the issue and it actually extract and index the dita content. After reindexing the damAssetLucene with updated oak:index/damAssetLucene/tika/config.xml fixed the issue. Now the search and replace functionality returning the results. 

 

Thank you..