Content Component 25.2
Content Component Help

# 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 2025 Open Text
Version 25.2 | Last updated April 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 Content Component 25.2

Topic Title: TermPositions