Content Component 26.1
Content Component Help

# ShowReasons

Set `ShowReasons` to `True` to return additional information in the response for each result document, displaying the words, phrases, and expressions in the document that match the query Text.

The `<autn:reasons>` result tag contains an `<autn:name>` tag for each field that contains a match, and an `<autn:reason>` tag for each matching expression. The `<autn:reason>` tag also contains a `positions` attribute, which lists the field code for a matching field, followed by the byte offset for each match in that field. For example:

    <autn:reasons>
       <autn:name code="12">DOCUMENT/DRECONTENT</autn:name>
       <autn:name code="14">DOCUMENT/INDEXFIELD</autn:name>
       <autn:reason positions="(12)169,450,644,1167,1337,1435,(14)0">fish</autn:reason>
       <autn:reason positions="(12)226,358,1610">fishing</autn:reason>
    </autn:reasons>

Actions: | Query
Type: | Boolean
Default: | False
Example: | `ShowReasons=True`
See Also: | Text

Copyright 2025 Open Text
Version 26.1 | Last updated January 2026

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 Content Component 26.1

Topic Title: ShowReasons