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
- On the Experience Optimization installation media, navigate to Content Delivery\roles\query\
- 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).
- From your SDL Web Content Delivery server, copy cd_licenses.xml into the config\ subfolder of your target folder.
- In the same folder, open smarttarget_conf.xml for editing.
- Find the
<QueryServer>section and set the value of theUrlsubelement to the value http://HOST:9180, where HOST is the host name of the machine on which the Fredhopper Query Server runs (localhostif you run both on the same server). - In the configuration location of the Management service, open its smarttarget_conf.xml and copy the
Analyticssection from that file to your Query service smarttarget_conf.xml file. - Save and close smarttarget_conf.xml
- On your target machine, from the target folder, open a PowerShell prompt and run the following command:
& '.\installService.ps1' - Navigate to the location of your SDL Web Content Delivery Discovery Service registration tool (the file discovery-registration.jar).
- If there is no file called cd_storage_conf.xml in this location, copy it from the Discovery Service configuration folder.
- Open cd_storage_conf.xml for editing.
- Find the
ConfigRepositorysection and itsRolessubsection. - Add a
Roleelement and set attributes as follows:Attribute Value NameSmartTargetQueryCapabilityUrlhttp://localhost:8094/query.svc - Save and close cd_storage_conf.xml.
- From a command prompt, run the following command:
java -jar discovery-registration.jar update