Configuring <QueryServer>
The <QueryServer> element specifies connection details to the Fredhopper Query Server. The Query Server processes queries (for retrieving content from Fredhopper).
Procedure
- Open the
smarttarget_conf.xmlconfiguration file.The file is used in several locations in your installation: Where to find smarttarget_conf.xml
- In the
<QueryServer>element, define the following child elements:<Url>- The address of the machine where the Fredhopper Query Server is running, or the URL of the load balancer if installed.
-
The following example is for Fredhopper running on premise:
<Url>http://fredhopper.host:8180/</Url> - For an example of the URL for Fredhopper running in a hosted environment, see Installing SmartTarget in cloud
<Authentication>-
Specify the
<username>and<password>of the user accessing the Fredhopper Query Server running in the cloud. You can encrypt the password using the SDL Tridion command line tool.Note: If Fredhopper is running on premise, the<username>and<password>is not needed. <Timeouts>-
Specify the number of milliseconds SmartTarget waits before timing out in the following situations:
<Query>- The maximum time to take executing a Fredhopper query before displaying fallback content in the Page Region.
The following is an example configuration of the<QueryServer>element:<QueryServer> <Url>http://fredhopper.host:8180/</Url> <Authentication> <Username>admin</Username> <Password>encrypted:56StnjmsTNnHdITMkL4KYw==</Password> </Authentication> <Timeouts> <Query>200</Query> </Timeouts> </QueryServer> - Save and close
smarttarget_conf.xml.