GET-INDEX

Opens an index for subsequent use by ENGLISH and certain TCL verbs. Rather than generating a select list, as SELECT-INDEX does, GET-INDEX starts a traversal of the index to supply item IDs to the immediately-following English verb, as required. This improves performance when compared to SELECT-INDEX, particularly when using remote indexes, since it does not build a select list in advance.

Note that because GET-INDEX does not build a select list, the SAVE-LIST command cannot be used after a GET-INDEX.

Command Class

TCL-I command.

Syntax

GET-INDEX file-specifier index-name

Syntax Elements

file-specifier Specifies a file as defined in Conventions, except that file modifiers cannot be used because indexes are only definable on data sections.

index-name The name of the index.

See Also

SELECT-INDEX, ISELECT, ICOUNT.