# 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

© Copyright 2020 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 mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm