Oracle8i interMedia Text Reference Release 2 (8.1.6) Part Number A77063-01 |
|
Query Operators, 23 of 26
Use the top term operator (TT) to replace a term in a query with the top term that has been defined for the term in the standard hierarchy (BT, NT) in a thesaurus. Top terms in the generic (BTG, NTG), partitive (BTP, NTP), and instance (BTI, NTI) hierarchies are not returned.
Syntax | Description |
---|---|
TT(term[,thes]) |
Replaces the specified word in a query with the top term in the standard hierarchy (BT, NT) for term. |
Specify the operand for the top term operator. term is replaced by the top term defined for the term in the specified thesaurus. However, if no TT entries are defined for term, term is not replaced in the query expression and term is the result of the expansion.
Specify the name of the thesaurus used to return the expansions for the specified term. The thes argument is optional and has a default value of DEFAULT. A thesaurus named DEFAULT must exist in the thesaurus tables if you use this default value.
The term dog has a top term of animal in the standard hierarchy of a thesaurus. A TT query for dog returns all documents that contain the phrase animal. Documents that contain the word dog are not returned.
You can browse your thesaurus using procedures in the CTX_THES package.
See Also:
For more information on browsing the top terms in your thesaurus, see CTX_THES.TT in Chapter 11. |
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|