Managing parameters in queries

As a Content Creator, you can add parameters to a query to customize it at run time. Operators are prompted to assign values to the parameters when they run the query, but they cannot see the Relevance expression.

  • To add a parameter, do the following steps:

    1. In the query editor, ensure you are in Admin view for the + Parameter button to be enabled.
    2. In the Relevance expression, place the cursor at the point where you want to add the parameter and click + Parameter.Add a new parameter.
    3. Enter Parameter ID, Parameter Label, and Default Value and click Save.

    The parameter is added to the Relevance expression.

    Parameters with a default value are displayed in green, and parameters without a default value are displayed in blue. Query parameters with and without default value assigned.
  • To reuse a parameter, do the following steps:
    1. Click + Parameter and enter the Parameter ID that you want to reuse; the Parameter Label and Default Value fields are populated automatically.
    2. To insert that parameter into the Relevance expression, click Save .
  • To see the definition of a parameter, click on the parameter in the query editor. Query parameter details.
  • To delete a parameter from a query, select the parameter in the query editor, and press the Backspace or Delete key.
  • To assign a value to a parameter (that does not have a default value) at run time as a Content Creator, click Operator View.
The following graphic shows how a Content Creator sees a query with parameters in the Admin View:Add a new parameter.

To review what Operators see when they select the query, click Operator View.

To return to the query editor, click Admin View.