Page 1 of 1

Add othermeta to search - webhelp responsive

Posted: Wed Jul 10, 2019 2:32 pm
by axhxu
Hi,
I am trying to figure out how to allow users to search our content by topic id/resource id.

These values are stored in the dita content in the othermeta area.

Do I need to add/hide the id in the html content?

Or do I need to add to the search racking properties?

Thanks
Arron

Re: Add othermeta to search - webhelp responsive

Posted: Thu Jul 11, 2019 4:33 pm
by ionela
Hi Arron,

You can achieve this by adding the topic id/resource id to a keyword element. Then, the keywords can be used by the search engine. You can find more details about keywords here: DITA 1.3 Specs - Keywords

Regards,
Ionela

Re: Add othermeta to search - webhelp responsive

Posted: Mon Jul 15, 2019 4:46 pm
by axhxu
Ok I have added the topic id to the keywords area of the topic but we still cannot search by document id.

Code: Select all

<keywords>
     ...
     <keyword class="- topic/keyword ">knw1532531547153</keyword>
     <keyword class="- topic/keyword ">1532531547153</keyword>
     ...
</keywords>
Should I see the keywords in the meta area of the generated HTML file?

Re: Add othermeta to search - webhelp responsive

Posted: Tue Jul 16, 2019 10:57 am
by Costin
Hi axhu,

We have just tested this and we were able to find topics searching by their ID set as keyword.
There seems nothing wrong with the keywords mechanism.

However, please make sure that you use separate ids for in separate topics.
Don't place all IDs as keywords inside a single topic, instead, for each topic use only its own topic ID as a keyword.

If you still encounter issues, we would need you to send us some sample files that reproduce the issue to investigate.

Regards,
Costin