Hello,
The
Index tab is created in the
WebHelp output only if the source XML topic files include indexterm definitions using the
indexterm XML element (the same XML element name is used in both DITA and DocBook - the WebHelp transformation is available for both DITA and DocBook XML and you did not specify your document type). If there is no indexterm markup in the source XML files no
Index tab will be created in the output. However if you wish to forcefully inhibit the
Index tab you can do so by editing the file
[Oxygen-install-dir]/frameworks/dita/DITA-OT/build.xml and removing the target name
webhelp-indexterms from the definition of the
dita2webhelp target (or from the definition of
dita2webhelp-feedback if you run the
WebHelp with Feedback transformation). That means you should remove the sub-string
webhelp-indexterms, (the comma included) from the line that starts with:
Code: Select all
<target name="dita2webhelp" depends="build-init, dita.map.webhelp.init
Better targeted results by XML markup-based search ranking (higher ranking for keywords and title words than for regular text words, etc.) is implemented from the initial version of the WebHelp transformation. For example the highest ranking is assigned to keywords, which in a DITA topic are the words from the
keywords metadata, for example
myKeyword below:
Code: Select all
<topic id="topic-ID">
<title>My title here</title>
<prolog>
<metadata>
<keywords>
<keyword>myKeyword</keyword>
</keywords>
</metadata>
</prolog>
<body>
...
The keyword ranking is double the title ranking, the indexterm ranking is 50% higher than the title ranking, title ranking is 10 times the bold ranking (that is words between the
<b> and
</b> tags in the source XML files), bold ranking is 5 times the regular text ranking (that is normal content words, without bold or italic style), and italic ranking (that is words between the
<i> and
</i> tags in the source XML files) is 3 times the regular text ranking.
Regards,
Sorin