@nitshar , Is there any way we can do with out using prolog element ?
yes,
use the rules in serialization.config file as highlighted below :
<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>
once data is indexed, the filter can be used on topic title, or on shortdesc text or on other created rules.
Example :
if following is the topic title tag ...
<title>TestSearch</title>
title as Element Name
TestSearch as Value