Query Manipulation Server 25.3
Query Manipulation Server Help

# ExpandText

Returns the query text that QMS would send to your 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.
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 2025 Open Text
Version 25.3 | Last updated July 2025

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 MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Query Manipulation Server 25.3

Topic Title: ExpandText