Keywords not searchable in chm

Please post all questions on Help+Manual 8 here

Moderators: Alexander Halser, Tim Green

Post Reply
jep1955b
Posts: 20
Joined: Sun Dec 25, 2022 4:52 pm

Keywords not searchable in chm

Unread post by jep1955b »

I have what seems an odd problem.

If I add keywords (and tried A-Keywords), when I compile chm files (M$ help compiler (Hcc?)) the keywords show up in the index, but they do not "search" properly. I ONLY can search keywords in the topic titles/texts.

For instance - search for unit flat will bring up topics (including this one) since the words are in the text. Zone flat will do the same. If I add the word per, which is not in any text, only keywords - "No Topics Found".

I don't want to add a "keywords" block that is displayed at the end of each topic. Although that would work.

Am I missing something?
keywords.png
You do not have the required permissions to view the files attached to this post.
User avatar
Alexander Halser
EC-Software Support
Posts: 1101
Joined: Mon Jun 24, 2002 7:24 pm
Location: Salzburg, Austria
Contact:

Re: Keywords not searchable in chm

Unread post by Alexander Halser »

That's correct, you are not missing anything.
Help+Manual exports the topic keywords with a <meta> tag, but the Microsoft CHM compiler does not include this into the full text search index.
Alexander Halser
Senior Software Architect, EC Software GmbH
User avatar
Tim Green
Site Admin
Posts: 7819
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Keywords not searchable in chm

Unread post by Tim Green »

You could try putting the keywords in an invisible tag at the end of the HTML page template for CHM in your skin. Put this directly before the closing </body> tag in the template:

Code: Select all

<span style="display:none"><%TOPIC_KEYWORDS%></span>
Since that is then normal text, it should be indexed by the CHM search engine.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Post Reply