Add othermeta to search - webhelp responsive

axhxu
Posts: 25
Joined: Thu Aug 27, 2015 9:28 pm

Add othermeta to search - webhelp responsive

Post by axhxu » Wed Jul 10, 2019 2:32 pm

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: 296
Joined: Mon Dec 05, 2011 6:08 pm

Re: Add othermeta to search - webhelp responsive

Post by ionela » Thu Jul 11, 2019 4:33 pm

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: 25
Joined: Thu Aug 27, 2015 9:28 pm

Re: Add othermeta to search - webhelp responsive

Post by axhxu » Mon Jul 15, 2019 4:46 pm

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: 604
Joined: Mon Dec 05, 2011 6:04 pm

Re: Add othermeta to search - webhelp responsive

Post by Costin » Tue Jul 16, 2019 10:57 am

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