Answer Server 23.4

# TestRule

Tests a set of questions that you specify against a question equivalence rule that you specify. You can use this action to test questions that are not in your Answer Bank Agentstore against new possible rules, before you index any content.

You specify the set of questions in the Questions parameter, which accepts a JSON object that contains the list of questions. You specify the rule in the Rule parameter.

The action returns details of the questions in the action that match the rule, and the ones that do not.

## Example

    action=TestRule&SystemName=MyAnswerBank&Questions={"text":["Why is the sky blue?","How do I return a defective item?"]}&Rule=sky AND blue

This action tests whether the two questions Why is the sky blue? and How do I return a defective item? match the rule `sky AND blue`.

## Required Parameters

The following action parameters are required.

Parameter | Description
--- | ---
Questions | A JSON object that contains the questions that you want to test against the rule.
Rule | The question equivalence rule that you want to test the questions against.
SystemName | The name of the system that you want to update.

## Optional Parameters

This action accepts the following standard ACI action parameters.

Parameter | Description
--- | ---
ActionID | A string to use to identify an ACI action.
FileName | The file to write output to.
ForceTemplateRefresh | Forces the server to load the template from disk.
Output | Writes output to a file.
ResponseFormat | The format of the action output.
Template | The template to use for the action output.
TemplateParamCSVs | A list of variables to use for the specified template.

## Response

You can retrieve the full response XSD by sending the GetResources action with Type set to `XSD`.

Copyright 2016-2023 Open Text
Version 23.4 | Last updated September 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL Answer Server 23.4

Topic Title: TestRule