Edit online

How to Change Element Scoring in Search Results

The WebHelp Search feature is enhanced with a rating mechanism that computes scores for every page that matches the search criteria. HTML tag elements are assigned a scoring value and these values are evaluated for the search results. The WebHelp directory includes a properties file that defines the scoring values for tag elements and this file can be edited to customize the values according to your needs.

To edit the scoring values of HTML tag element for enhancing WebHelp search results, follow these steps:

  1. Edit the scoring properties file for DITA. The properties file includes instructions and examples to help you with your customization. The file is located in: DITA-OT-DIR\plugins\com.oxygenxml.webhelp.responsive\indexer\scoring.properties.
    The following values can be edited in the scoring.properties file:
    h1 = 10
    h2 = 9
    h3 = 8
    h4 = 7
    h5 = 6
    h6 = 5
    b = 5
    strong = 5
    em = 3
    i=3
    u=3
    div.toc=-10
    title=20
    div.ignore=ignored
    meta_keywords = 20
    meta_indexterms = 20
    meta_description = 25
    shortdesc=25
  2. Save your changes to the file.
  3. Re-run your WebHelp transformation.