Oracle Text Application Developer's Guide
Release 9.0.1

Part Number A90122-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

Querying, 4 of 6


Query Operators for CATSEARCH

The CATSEARCH operator has a simpler query language than CONTAINS. Its query language supports logical operations such as AND and OR as well as phrase queries.

The CATSEARCH query operators have the following syntax:

Operation  Syntax  Description of Operation 

Logical AND 

a b c 

Returns rows that contain a, b and c. 

Logical OR 

a | b | c 

Returns rows that contain a, b, or c. 

Logical NOT 

a - b 

Returns rows that contain a and not b. 

hyphen with no space 

a-b 

Hyphen treated as a regular character.

For example, if the hyphen is defined as skipjoin, words such as web-site treated as the single query term website.

Likewise, if the hyphen is defined as a printjoin, words such as web-site treated as web site with the space in the CTXCAT query language. 

" " 

"a b c" 

Returns rows that contain the phrase "a b c".

For example, entering "Sony CD Player" means return all rows that contain this sequence of words. 

( ) 

(A B) | C 

Parentheses group operations. This query is equivalent to the CONTAINS query (A &B) | C. 

See Also:

Oracle Text Reference for more information about using these operators. 


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback