Oracle8i interMedia Text Reference Release 2 (8.1.6) Part Number A77063-01 |
|
CTX_THES Package, 20 of 26
This function returns the related terms of a term in the specified thesaurus.
CTX_THES.RT(restab IN OUT NOCOPY EXP_TAB, phrase IN VARCHAR2, tname IN VARCHAR2 DEFAULT 'DEFAULT');
CTX_THES.RT(phrase IN VARCHAR2, tname IN VARCHAR2 DEFAULT 'DEFAULT') RETURN varchar2;
Optionally, specify the name of the expansion table to store the results. This table must be of type EXP_TAB which the system defines as follows:
type exp_rec is record ( xrel varchar2(12), xlevel number, xphrase varchar2(256) ); type exp_tab is table of exp_rec index by binary_integer;
See Also:
For more information about EXP_TAB, see "CTX_THES Result Tables and Data Types" in Appendix B, "Result Tables". |
Specify phrase to lookup in thesaurus.
Specify thesaurus name. If not specified, system default thesaurus is used.
This function returns a string of related terms in the form:
{rt1}|{rt2}|{rt3}| ...
Consider a thesaurus MY_THES with the following related term definition for dog:
DOG RT WOLF RT HYENA
To look up the related terms for dog, execute the following code:
declare terms varchar2(2000); begin terms := ctx_thes.rt('DOG','MY_THES'); dbms_output.put_line('The related terms for dog are: '||terms); end;
This codes produces the following output:
The related terms for dog are: {dog}|{wolf}|{hyena}
Related Term (RT) Operator in Chapter 4
This function returns all synonyms of a phrase as recorded in the specified thesaurus.
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|