You must complete these steps to adopt the fix in this
APAR.
Before you begin
- Install the interim fix for APAR JR53912.
- Delete the current search index to ensure that you can successfully
recreate the search index and apply fixes:
- Complete the following task:
Procedure
Configure the SearchBasedKeywordSuggestions search
property in the catalog component configuration file (wc-component.xml)
on the Search EAR:
- Open the catalog component configuration file on the
Search EAR for editing.
The component configuration file is stored in
the following location:
- Search_eardir/xml/config/com.ibm.commerce.component_name/wc-component.xml
- The default component configuration file for the search application.
- Search_eardir/xml/config/com.ibm.commerce.component_name-ext/wc-component.xml
- The extended component configuration file for the search application.
- To change the value of an existing property in the WebSphere Commerce search component
configuration file, you must create a customized version of the file in this location. The
customized version of the file must contain only the changed properties.
For
more information about the values within the file, see
Search properties in the component configuration file (wc-component.xml) (Search EAR).
- Set the following property:
<!--
SearchBasedKeywordSuggestions
When set, keyword suggestions returned by keywordSuggestionsByTerm siteContent REST API, will be
based on doing keyword search using search query component. The IBM_findNavigationSuggestion_Keywords
search profile is used to construct the query. Otherwise default TermsComponent is
used.
The difference is suggestion based on search query can take into account different filters such
as store, catalog, entitlement, and catalog entry type, etc. Unlike suggestions by the Terms-
Component, are generated from all of the indexed documents.
Default value is false. Additional properties evaluated when this set to true are:
SearchBasedKeywordSuggestionsMaxShingleSize
SearchBasedKeywordSuggestionsSortByFrequency
-->
<_config:property name="SearchBasedKeywordSuggestions" value="true" />
For more information about setting values in the file,
see Changing properties in the component configuration file (wc-component.xml) (Search EAR).