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 Edit view for the +Parameter button to be enabled.
    2. In the Query editor, place the cursor at the point where you want to add the parameter in the Relevance expression 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.

  • 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.
  • 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 Edit view:
Add a new parameter.

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

To return to the Edit view, click edit.