Changing the default boost factor for the Specify Top Search Result action
You can change the default boost factor for the
Specify Top Search Results action in search rules. In doing so, you
can change the strength in which your specified catalog entries are
elevated in the search results.To change any properties
in the marketing component configuration file (wc-admin-component.xml),
you must create a customized version of the file in a new folder.
The customized version of the file must contain only the changed properties.
Before you begin
Procedure
- Open HCL Commerce Developer and switch to the Enterprise Explorer view.
-
Create a com.ibm.commerce.marketing-ext folder for your customized
marketing component configuration file at the following path:
workspace_dir\WC\xml\config\com.ibm.commerce.marketing-ext\
If this folder exists and contains a customized version of the wc-admin-component.xml file, or if a customized version exists elsewhere, open the customized version and skip to the next step. If the folder does not exist and contain a customized version, complete these substeps:
- Add the topSearchResultBoostFactor property
to change the default boost factor. For example:
<?xml version="1.0" encoding="ISO-8859-1"?> <_config:DeploymentConfiguration xmlns:_config="http://www.ibm.com/xmlns/prod/commerce/foundation/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ibm.com/xmlns/prod/commerce/foundation/config ../xsd/wc-admin-component.xsd"> <_config:extendedconfiguration> <_config:configgrouping name="MarketingRuntime"> <!-- The boost factor used to force the first product specified in the "Specify top search results" action to the top of the search results list. This value overrides the default constant. --> <_config:property name="topSearchResultBoostFactor" value="20000"/> <!-- new value --> </_config:configgrouping> </_config:extendedconfiguration> </_config:DeploymentConfiguration>
If your customized marketing component configuration file already exists, and if you want to change additional properties that are not currently in the customized file, you can copy those properties into your customized file from the default marketing component configuration file at workspace_dir\WC\xml\config\com.ibm.commerce.marketing\wc-admin-component.xml.
-
Within the
<_config:configgrouping name="MarketingRuntime">
element, remove any properties that are not set differently from the default marketing component configuration file. The customized file must contain only the differences. - Save and close the customized file.
- To update the changes in a development environment, start, or restart the test servers.