Develop > Presentation layer > Customize marketing > Work with Product Advisor > Create a metaphor XML input file


Migrate Product Advisor data from staging server to production server

The steps in this section explain how to migrate Product Advisor data from the staging server to the production server.


Procedure

  1. 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:

    1. Open the WebSphere Commerce configuration file.

    2. Set the value of the

      <GenerateXMLFile> tag to " true" 
      
      <SearchSpaceConfiguration name="Search Space Configuration"> 
      
      <CompatibilityMode value="true"/> 
      
      <GenerateXMLFile value="true"/> 
      
      </SearchSpaceConfiguration>
      

    3. Save the file.

    4. Restart the WCS instance for the changes to take effect.

    5. The search space xml is generated in the location as specified by the key ssXMLFilePath in the ProductAdvisorKeys.properties file.

  2. Create the Search space manually or using the batch command PACreateSearchSpaceBatchCmd.

  3. Create metaphors for the categories you wish to export on the staging server. For more information see Create metaphors using the command utilities.

  4. To export metaphors, schedule the PAXMLExportBatchCmd scheduler command from the Administration Console.

  5. Move the output xmlFileName file to a location on the production server.

  6. Create one or more search spaces on the production server.

  7. To import metaphors, in order to create, update or delete the metaphors, schedule the PACreateMetaphorBatchCmd scheduler command from the Administration Console.


Related concepts

Dynamic data beans

Widget beans


Related tasks

Create a Product Advisor search space manually for the separate search space

Create a Product Advisor search space using an XML file

Create a Product Advisor search space for the separate search space using sample utility

Related reference

Sample: Product Advisor JSP files


+

Search Tips   |   Advanced Search