Open topic with navigation

# ExpandText

Returns the query text that QMS would send to your IDOL Content component if you used the text in a `Query` action with the parameter `ExpandQuery=TRUE`. This action only returns the expanded text, it does not send the query or return any results.

## Required Parameters

The following action parameters are required.

Parameter | Description
--- | ---
Text | The query text to expand.

## Optional Parameters

This action accepts the following optional parameters.

Parameter | Description
--- | ---
LanguageType | The language type of the query text.

This action accepts the following standard ACI action parameters.

Parameter | Description
--- | ---
ActionID | A string to use to identify an ACI action.
EncryptResponse | Encrypt the output.
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.

## Example

The following action requests the expanded text for the query "Search for dog".

    http://qms:16000/action=ExpandText&Text=Search%20for%20dog

## Response

The following is an example response. This response shows that the word "dog" has been expanded as a result of a synonym rule.

    <autnresponse>
      <action>EXPANDTEXT</action>
      <response>SUCCESS</response>
      <responsedata>
        <autn:expansionOrder>
          <autn:rule reference="dog_synonyms" modified_query="Search for (SYNONYM(dog hound canine))" rule_type="synonym"/>
        </autn:expansionOrder>
        <autn:expanded>Search for (SYNONYM(dog hound canine))</autn:expanded>
      </responsedata>
    </autnresponse>

© Copyright 2018 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm