Adjust the field weight for IDOL search

As a system administrator, you can include certain fields to the IDOL index by manually adding the Weight parameter to these fields. In addition, you can also adjust the value of the Weight parameter to balance the weight of index.

The Title field is used as an example in the following steps. To adjust the weight for the Title field in IDOL, follow these steps:

  1. Log on to the Red Hat system as the root user.
  2. Open <Smart Analytics Installation>/Content-SMSP/Content-SMSP.cfg, and then add the Weight property to the [TitleFields] section as follows:

    [TitleFields]
    Index=TRUE
    TitleType=TRUE
    SourceType=TRUE
    Weight=4
    

    Note The weight value ranges from 0 to 16. Updating this value will impact all IDOL modules and you must re-index all catalog items.

  3. Run the following command to restart the IDOL service:

    service idol-content-smsp restart

  4. Run the following command to re-index all catalog items:

    java -jar lib/catalog.jar reindex

    Note The re-index operation will impact the search function because all catalog items in IDOL will be cleaned and indexed again during this process.