|Oracle Text Application Developer's Guide
Part Number A90122-01
Working With a Thesaurus, 3 of 5
You can create synonyms, related terms, and hierarchical relationships with a thesaurus. The following sections give examples.
If you have a thesaurus of computer science terms, you might define a synonym for the term XML as extensible markup language. This allows queries on either of these terms to return the same documents.
You can thus use the SYN operator to expand XML into its synonyms:
is expanded to:
If your document set is made up of news articles, you can use a thesaurus to define a hierarchy of geographical terms. Consider the following hierarchy that describes a geographical hierarchy for the U.S state of California:
California NT Northern California NT San Francisco NT San Jose NT Central Valley NT Fresno NT Southern California NT Los Angeles
You can thus use the NT operator to expand a query on California as follows:
'California, Northern California, San Francisco, San Jose, Central Valley, Fresno, Southern California, Los Angeles'
The resulting hitlist shows all documents related to the U.S. state of California regions and cities.