Add othermeta to search - webhelp responsive

Post here questions and problems related to editing and publishing DITA content.
axhxu
Posts: 45
Joined: Thu Aug 27, 2015 9:28 pm

Add othermeta to search - webhelp responsive

Post 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
ionela
Posts: 402
Joined: Mon Dec 05, 2011 6:08 pm

Re: Add othermeta to search - webhelp responsive

Post 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
Ionela Istodor
oXygen XML Editor and Author Support
axhxu
Posts: 45
Joined: Thu Aug 27, 2015 9:28 pm

Re: Add othermeta to search - webhelp responsive

Post 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?
Costin
Posts: 833
Joined: Mon Dec 05, 2011 6:04 pm

Re: Add othermeta to search - webhelp responsive

Post 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
Costin Sandoi
oXygen XML Editor and Author Support
Post Reply