# TermPositions

Set `TermPositions` to `True` to generate a list of the positions of the occurrences of any terms that satisfy the specified Boolean expression in a specified document.

For phrases, `TermPositions` returns only the occurrence corresponding to the final term of the phrase. For `WHEN` operators, it returns only the occurrences of the first term or phrase. Other proximity operators are not supported.

Actions: | DocumentStats
Type: | Boolean
Default: |
Example: | `action=DocumentStats&Text="business":MyField&TermPositions=True&MatchID=1034` This example returns a list consisting of the occurrences of the term business that appear in the text of the field `MyField` in the document with ID `1034`. For example: `<autn:positions>(6)11,15,26</autn:positions>` This response indicates that there were three occurrences, in positions 11, 15, and 26 in the field with fieldcode `6`.
See Also: | MatchID MatchReference Text

_FT_HTML5_bannerTitle.htm