Oracle Text Reference Release 9.0.1 Part Number A90121-01 |
|
CTX_THES Package , 16 of 30
Use this procedure to test that a thesaurus relation exists without actually doing the expansion. The function returns TRUE if the phrase has any of the relations in the specified list.
CTX_THES.HAS_RELATION(phrase in varchar2, rel in varchar2, tname in varchar2 default 'DEFAULT') returns boolean;
Specify the phrase.
Specify a single thesaural relation or a comma-separated list of relations, except PT. Specify 'ANY' for any relation.
Specify the thesaurus name.
The following example returns TRUE if the phrase "cat" in the DEFAULT thesaurus has any broader terms or broader generic terms:
set serveroutput on result boolean; begin result := ctx_thes.has_relation('cat','BT,BTG'); if (result) then dbms_output.put_line('TRUE'); else dbms_output.put_line('FALSE'); end if; end;
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|