ALTER_PHRASE
Alters an existing phrase in the thesaurus. Only CTXSYS or thesaurus owner can alter a phrase.
Syntax
CTX_THES.ALTER_PHRASE(tname in varchar2,
phrase in varchar2,
op in varchar2,
operand in varchar2 default null);
tname
Specify the thesaurus name.
phrase
Specify a phrase to alter.
op (alter operation)
Specify the alter operation as a string or symbol. You can specify one of the following operations with the op and operand pair:
| op (or alter operation) | meaning | operand |
|---|---|---|
or
|
Rename phrase. If the new phrase already exists in the thesaurus, this procedure raises an exception. | Specify a new phrase. You can include qualifiers to change, add, or remove qualifiers from phrases. |
or
|
Make phrase the preferred term. Existing preferred terms in the synonym ring becomes non-preferred synonym. | (none) |
or
|
Change the scope note on the phrase. | Specify a new scope note. |
operand
Specify an argument to the alter operation. See table for “op (alter operation)”.
Examples
Correct misspelled word in thesaurus:
ctx_thes.alter_phrase('thes1', 'tee', 'rename', 'tea');
Remove qualifier from mercury (metal):
ctx_thes.alter_phrase('thes1', 'mercury (metal)', 'rename', 'mercury');
Add qualifier to mercury:
ctx_thes.alter_phrase('thes1', 'mercury', 'rename', 'mercury (planet)');
Make Kowalski the preferred term in its synonym ring:
ctx_thes.alter_phrase('thes1', 'Kowalski', 'pt');
Change scope note for view cameras:
ctx_thes.alter_phrase('thes1', 'view cameras', 'sn', 'Cameras with lens focusing');