:title: Configuring Query Feedback for {catalog-ui}
:type: subConfiguration
:status: published
:parent: Configuring {catalog-ui}
:order: 04
:summary: Configuring Query Feedback for {catalog-ui}.

== {title}

{catalog-ui} provides an option to allow users to submit Query Feedback.

.Configuring Query Feedback
. First, configure the *Email Service* to point to a mail server. See <<{reference-prefix}org.codice.ddf.platform.email.impl.SmtpClientImpl,Email Service Configurations>>.
. Navigate to the *{admin-console}*.
. Select the *{ddf-ui}* application.
. Select the *Configuration* tab.
. Select *Catalog UI Search*.
. Select the *Enable Query Feedback* option to enable the query comments option for users in {catalog-ui}.
. Add a *Query Feedback Email Subject Template*.
. Add a *Query Feedback Email Body Template*. The template may include HTML formatting.
. Add the *Query Feedback Email Destination*.
. Select the *Save* button.

.Query Feedback Template Replacements

The following keywords in the templates will be replaced with submission-specific values, or "Unknown" if unknown.

[cols="1m,1"]
|===
|Template keyword |Replacement value

|`{{auth_username}}`
|Username of the security subsystem (see <<{developing-prefix}security_framework,Security Framework>>)

|`{{username}}`
|Username of the user who submitted the Query Feedback

|`{{email}}`
|Email of the user who submitted the Query Feedback

|`{{workspace_id}}`
|Workspace ID of the query

|`{{workspace_name}}`
|Workspace Name of the query

|`{{query}}`
|Query

|`{{query_initiated_time}}`
|Time of the query

|`{{query_status}}`
|Status of the query

|`{{query_results}}`
|Results of the query

|`{{comments}}`
|Comments provided by the user about the query
|===

.Submitting Query Feedback from Intrigue
. Perform a search on any workspace.
. Select the 3 dots on the results tab.
. Choose the *Submit Feedback* option.
. Add comments in the input box.
. Select the *Send* button.

See <<{reference-prefix}org.codice.ddf.catalog.ui,Catalog UI Search Configurations>> for default Query Feedback configurations.
