Content Component 25.2
Content Component Help

# TermPositions

Set `TermPositions` to `True` to generate a list of the field codes and positions of the occurrences of a specified term. You can specify multiple terms, but only one document ID or reference.

TIP: To determine the fields to which each field code corresponds, use the GetTagNames action with the FieldCode parameter.

Actions: | TermGetInfo
Type: | Boolean
Default: | False
Example: | `action=TermGetInfo&Text=term&MatchID=23&TermPositions=True` This example might generate the following response: `<autn:term apcm_weight="123" document_occurrences="1" total_occurrences="4" pos="(4)0(6)11,15,19,22">` This response indicates there was one occurrence of term in position `0` in the field with field code `4`, and there were four occurrences with positions `11`, `15`, `19`, and `22` in the field with field code `6`.
See Also: | MatchID MatchReference Text GetTagNames action

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