Documentation Center

Step 6: Installing the Experience Optimization Query Service

Install the Query Service to enable communication between the .NET Web site and the Fredhopper Query Server.

Procedure

  1. On the Experience Optimization installation media, navigate to Content Delivery\roles\query\
  2. Copy the contents of this folder to a folder of your choosing on your target machine (for example, a machine on which the Fredhopper Query Server runs).
  3. From your SDL Web Content Delivery server, copy cd_licenses.xml into the config\ subfolder of your target folder.
  4. In the same folder, open smarttarget_conf.xml for editing.
  5. Find the <QueryServer> section and set the value of the Url subelement to the value http://HOST:9180, where HOST is the host name of the machine on which the Fredhopper Query Server runs (localhost if you run both on the same server).
  6. In the configuration location of the Management service, open its smarttarget_conf.xml and copy the Analytics section from that file to your Query service smarttarget_conf.xml file.
  7. Save and close smarttarget_conf.xml
  8. On your target machine, from the target folder, open a PowerShell prompt and run the following command:
    & '.\installService.ps1'
  9. Navigate to the location of your SDL Web Content Delivery Discovery Service registration tool (the file discovery-registration.jar).
  10. If there is no file called cd_storage_conf.xml in this location, copy it from the Discovery Service configuration folder.
  11. Open cd_storage_conf.xml for editing.
  12. Find the ConfigRepository section and its Roles subsection.
  13. Add a Role element and set attributes as follows:
    AttributeValue
    NameSmartTargetQueryCapability
    Urlhttp://localhost:8094/query.svc
  14. Save and close cd_storage_conf.xml.
  15. From a command prompt, run the following command:
    java -jar discovery-registration.jar update