Follow this procedure to exclude specific parts of DITA content from being indexed:
- Download the
data-ft-no-index_plugin.zipDITA-OT plugin from the Attachments. - Follow the Add a DITA-OT plugin technical note to create a custom DITA-OT containing the
data-ft-no-index_plugin.zipplugin. - Select the Configure DITA-OT button in the Sources tab of the Knowledge Hub menu.
- Upload the custom DITA-OT archive.
- Open the DITA-OT Advanced settings, and enter
html5in the Transtype field. - Select Save.
-
Go to the Publishing menu, and upload DITA content with the
data-ft-no-index="true"attribute.For example:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"> <topic xml:lang="en" id="test-ft-no-index"> <title>Test</title> <body> <p data-ft-no-index="true">Fluid Topics will not index this content, but it will be visible to readers.</p> <p>Fluid Topics will index this content, and it will be visible to readers.</p> </body> </topic>
Content tagged with data-ft-no-index="true" does not appear in search results, or in Chatbot answers.
The data-ft-no-index="true" attribute applies to the tagged element and all its children. If a parent element is tagged, child-level tags are ignored.
Do not use data-ft-no-index to hide content from users. Content tagged with data-ft-no-index appears in published documents. Fluid Topics does not indexes it.
Instead, use:
- Access rules to restrict access to specific documents and topics based on metadata values and user groups.
- The Publish status metadata key with a value of
unlistedso that the whole document does not appear in search results, except forADMIN,KHUB_ADMIN, andCONTENT_PUBLISHERusers. It is also available to anyone with a direct link.