IDOL Content Component 12.12

# 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 2022 Micro Focus or one of its affiliates
Version 12.12 | Last updated June 2022

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 IDOL Content Component 12.12

Topic Title: ShowReasons