Oracle8i interMedia Text Reference Release 2 (8.1.6) Part Number A77063-01 |
|
CTX_THES Package, 6 of 26
This function returns all broader terms instance of a phrase as recorded in the specified thesaurus.
CTX_THES.BTI(restab IN OUT NOCOPY EXP_TAB, phrase IN VARCHAR2, lvl IN NUMBER DEFAULT 1, tname IN VARCHAR2 DEFAULT 'DEFAULT');
CTX_THES.BTI(phrase IN VARCHAR2, lvl IN NUMBER DEFAULT 1, 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 how many levels of broader terms to return. For example 2 means get the broader terms of the broader terms of the phrase.
Specify thesaurus name. If not specified, system default thesaurus is used.
This function returns a string of broader terms instance in the form:
{bt1}|{bt2}|{bt3} ...
To look up the broader terms instance for cat up to two levels, issue the following statements:
declare terms varchar2(2000); begin terms := ctx_thes.bti('CAT', 2, 'MY_THES'); dbms_output.put_line('the broader expansion for CAT is: '||terms); end;
Broader Term (BT, BTG, BTP, BTI) Operators in Chapter 4
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|