Hi ,
Following are the steps to use DITA Element Search
1. navigate to URL <server>/crx/de, overlay the /libs/fmdita/config folder to /apps. Once this is done, copy the serializationconfig.xml file from /libs/fmdita/config/ and paste it to /apps/fmdita/config
2. With Admin user, Navigate to Tools -> Search Forms. Check the checkbox for Assets Admin Search Rail and click on Edit. On the right scroll down and search for DITA Element Predicate. Drag and drop this to the left side of the screen. Save the changes
3. For the non admin users to perform search, navigate to <Server_URL>/useradmin. Now search for the group. Go to Permissions tab. Navigate to /conf/globa/settings/dam. Give Read permission on dam for the group. This will enable the non admin users to perform DITA ELEMENT search
4. Navigate to <Server_URL>/system/console/configMgr. Here search for Component com.adobe.fmdita.config.ConfigManager. Check the checkbox for Enable DITA Metadata Extraction. Save the changes. If any changes are done on the serializationconfig.xml file (mentioned in step 1), you need to again open and save the com.adobe.fmdita.config.ConfigManager [URL : <Server_URL>/system/console/configMgr]
5. Now to serialize the existing data, navigate to Tools -> XML Documentation -> DITA Metadata Extraction.
a. To select a file, choose the option ‘Select a file’ and browse to select the desired file.
b. To select a folder, choose the option ‘Select Folder(s)’. You can choose multiple folders using the browse option and adding each folder using the ‘Add’ button
6. You can serialize the desired content by clicking Start. Serialization would be done based on the rules set in the serializationconfig.xml file.
7. Below are some sample rules for DITA-TOPICS and DITAMAPS:
<ruleset filetypes="xml dita">
<!-- Element rules -->
<rule xpath="//*[contains(@class, 'topic/topic')]/*[contains(@class, 'topic/prolog')]//*[not(*)]" text="yes" attributeset="all-attrs" />
<!-- Attribute rules -->
<rule xpath="//*[contains(@class, 'topic/topic')]/*[contains(@class, 'topic/prolog')]//*/@*[local-name() != 'class']" />
<!-- MORE rules -->
<rule xpath="//*[contains(@class, 'topic/topic')]/shortdesc" text="yes" />
<rule xpath="//*[contains(@class, 'topic/topic')]/taskbody/context/p" text="yes" />
<rule xpath="//*[contains(@class, 'topic/topic')]/conbody/p" text="yes" />
<rule xpath="//*[contains(@class, 'topic/topic')]/title" text="yes" />
<rule xpath="//*[contains(@class, 'topic/topic')]/taskbody/steps/step/cmd" text="yes" />
<rule xpath="//*[contains(@class, 'topic/topic')]/conbody/fig/title" text="yes" />
<rule xpath="//*[contains(@class, 'topic/topic')]/taskbody/steps/step/info/fig/title" text="yes" />
</ruleset>
<ruleset filetypes="ditamap">
<rule xpath="//*[contains(@class, 'map/map')]/title" text="yes" />
</ruleset>
8. You can now perform search on the DITA element