The steps in this section explain how to migrate Product Advisor
data from the staging server to the production server.
Procedure
- Enable the automatic search space XML file generation as follows
:
To generate the search space XML when creating a search
space from WebSphere Commerce Accelerator:
- Open
the WebSphere Commerce configuration file.
- Set the value of the
<GenerateXMLFile> tag to " true"
<SearchSpaceConfiguration name="Search Space Configuration">
<CompatibilityMode value="true"/>
<GenerateXMLFile value="true"/>
</SearchSpaceConfiguration>
- Save the file.
- Restart the WebSphere Commerce instance for the changes to take
effect.
- The search space xml is generated in the location as specified
by the key ssXMLFilePath in the ProductAdvisorKeys.properties file.
- Create the Search space manually or using the batch command PACreateSearchSpaceBatchCmd.
- Create metaphors for the categories you wish to export on the staging
server. For more information see Creating metaphors
using the command utilities.
- To export metaphors, schedule the
PAXMLExportBatchCmd scheduler command
from the Administration Console.
- Move the output xmlFileName file to a location
on your production server.
- Create one or more search spaces on the production server.
- To import metaphors, in order to create, update or delete the metaphors,
schedule the
PACreateMetaphorBatchCmd scheduler
command from the Administration Console.