Configuring category-based search relevancy
Use the category-based search relevancy feature to boost or filter products that display to shoppers on the Search Results page.
The search merchandiser can use category-based search relevancy feature to create results that more closely matches the shopper's expectation.
Consider a department store that sells notebooks. There are some notebooks in the Stationary category and many notebook computers in the Electronics category. There are a few films in the Movies category that have the term notebook in the short description. Finally, the Books category has some books with the term notebook in the title. Before you implemented the category-based search relevancy feature, a shopper who searched for notebook sale would see results from all four categories, and other categories that contain products with the word sale indexed. From the shopper's perspective, the results might be grouped in an unexpected way.
- Boost products to show products from a specific category first.
For example, if the shopper searches for notebook sale show search results from the Electronics category, then show results from other categories.
How to implement:
- Developer: Set the
relevancyType=1
property in the component configuration file, wc-component.xml. - Search merchandiser: In the Catalogs tool Electronics category Change Category page
Keyword field, add the term
notebook
. Do not add this keyword to any other category.
- Developer: Set the
- Filter products to show results from specific categories.
For example, if the shopper searches for notebook sale show search results from the Electronics, Stationary, and Movies categories. Do not show products from any other categories.
How to implement:
- Developer: Set joinFilterQuery to true in the wc-search.xml file.
- Search merchandiser: In the Catalogs tool Change Category page Keyword
field, add the term
notebook
for the Electronics, Stationary, and Movies categories. Do not add this keyword to any other categories. Products within the three categories are searched. The returned products contain indexed fields that have the text notebook, or sale.
- Category-based search relevancy does not support multiple search terms. That is, both commas and spaces are treated as separators in the search query. For example, if any of a customer's search terms are found in multiple categories, all categories containing the search terms will be searched.
- Category-based search relevancy does not support the Specify Top Search Result search rule action.
- The keyword field does not distinguish between the master and sales catalogs. If you add a keyword to the master or sales catalog, it will appear be filtered regardless of the catalog you are searching. To avoid having keywords affect each other, create a separate sales catalog for the keyword, so that they are considered separate.
Procedure
-
Enable and work with the category-based search relevancy feature by setting properties in the
extended catalog component configuration file (wc-component.xml) on the Search
EAR:
-
Enable and work with the category-based search relevancy feature by setting properties in the
extended search configuration file (wc-search.xml) on the Search EAR:
-
If you are using sales catalogs, complete this step to ensure that products within a sales
catalog do not appear in search results in the master sales catalog:
- Optional:
Increase the size of the CATGRPDESC table KEYWORD column.
The category-based search relevancy feature uses the CATGRPDESC.KEYWORD to store product-category mappings. This column is defined as column VARCHAR(254). If you require more space, increase the size of the column. You must also modify the wc-data-config.xml file.
- Business users: Update category descriptions to include keyword data by using either the Catalogs tool or the Data Load utility: