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.
Procedure
- Navigate to the configuration location of your Discovery Service installation.
- 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.
- Find the
ConfigRepository section and its Roles subsection.
- Find the
Role element with its Name attribute set to SmartTargetQueryCapability.
- 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.
- Save and close cd_storage_conf.xml.
- Open a command prompt.
- Enter the following command:
java -jar discovery-registration.jar update
The tool registers the configured Capabilities.