Documentation Center

Registering the Query Service as a Capability

You can make the Query Service discoverable through the Content Delivery Discovery Endpoint by adding it as a Capability to the Discovery Service's Storage Layer configuration file and then updating the Capability registry.

About this task

Procedure

  1. Navigate to the configuration location of your Discovery Service installation.
  2. From this location, copy cd_storage_conf.xml to the location in which you saved the Discovery Service registration tool (the file discovery-registration.jar), and open it for editing.
  3. Find the ConfigRepository section and its Roles subsection.
  4. Find the Role element with its Name attribute set to SmartTargetQueryCapability.
  5. In this Role element, set the Url attribute to http://HOST:PORT/query.svc, where http://HOST:PORT identifies the base URL of the Query service. By default, this microservice runs on port 8094.
  6. Save and close cd_storage_conf.xml.
  7. Open a command prompt.
  8. Enter the following command:
    java -jar discovery-registration.jar update
    The tool registers the configured Capabilities.