Additional steps for WebSphere Commerce search interim fixes: Setting up the search index
Some WebSphere Commerce search-related interim fixes require you to set up the search
index. The readme file for the interim fix indicates whether this step is necessary.
Procedure
-
Complete one of the following tasks:
- Log on as a WebSphere Commerce non-root user.
- Log on with a user profile that has *SECOFR authority.
- Log on with a user ID that is a member of the Windows Administration group.
-
Go to the following directory:
- WC_installdir\components\foundation\subcomponents\search\bin
- WCDE_installdir\components\foundation\subcomponents\search\bin
-
Run the search index setup utility, additionally specifying the
configWCforSolrUpdate
orconfigSolrCoresUpdate
actions, and theincludeUpdate
parameter:-
setupSearchIndex.bat [-action action] [-includeUpdate true | false] [util-specific-params]
setupSearchIndex.sh [-action action] [-includeUpdate true | false] [util-specific-params]
setupSearchIndex.bat [-action action] [-includeUpdate true | false] [util-specific-params]
Where:- action
- Prepares the search index for certain scenarios.
- includeUpdate
- Indicates whether the utility should apply optional features provided by interim fixes.
- util-specific-params
- For more information about utility-specific parameters and actions that are not related to applying optional features provided by interim fixes, see setupSearchIndex utility.
Note: This utility recreates search index processing templates and recreates the search index structure. A back up of your search directories are created to preserve your search customizations. The back up directories are created under Search_home/pre-processConfig and Search_home/solr/home with a timestamp appended for the MC_MasterCatalogId folder. -
-
Ensure that the utility runs successfully.
Consult the following table for the utility results:
Search setup utility results Results Description Search index setup successfully completed without errors. The utility ran successfully. Search index setup successfully completed with warnings. Check the log file for more information. The utility ran successfully but with warnings. Some warnings might be generated during the setup index process. However, they might not be important. For example, if the utility skips existing cores. Search index setup successfully completed with errors. Check the log file for more information. The utility ran successfully but with errors. The job did not completely finish setup. Check the log file to see where the problem occurred. Search index setup not successful. An unrecoverable error has occurred. Check the log file for more information. The utility did not run successfully. Check the log file to see where the problem occurred. To ensure that the utility ran successfully, check the log file:- Local machine: WC_installdir/components/foundation/subcomponents/search/config/logging.properties
- Remote machine: working_dir/search/config/logging.properties
If the log file indicates an error, correct the issue and run the utility again. If you require more logging information to correct the issue, update the logging level fromINFO
toFINEST
:
Updating the logging level to# Default global logging level, INFO com.ibm.commerce.level=FINEST
FINEST
lists all details as the utility runs. Use this level if you encounter errors or exceptions and you need additional information for troubleshooting. For more information, see Enabling tracing and logging for WebSphere Commerce Search. - Restart the WebSphere Commerce search server.
- Merge your customizations back into the newly created templates, if necessary.
- Preprocessing the WebSphere Commerce search index.
- Building the WebSphere Commerce search index.