Using Boolean Operators with Full-Text Oracle

The following Boolean operators may be used when full-text searching with an Oracle database. These operators can be used by themselves or combined in a number of ways to create very specific search results. Always place Boolean operators between the keywords on which you are searching. With an Oracle database, they may not be used in conjunction with phrases.

For a description of all of the Oracle search operators, see the Full-Text Searching with Oracle Reference.

Simple Boolean Operators

AND

Example: Smith AND Company.

OR

Example: Smith OR Company.

Advanced Boolean Operators

Basic Boolean searches suit most of your needs, but you might want to narrow your search results even further by applying more advanced operators. While advanced, they still resemble common thought processes used in making choices.

In addition to the two simple operators discussed above, with Oracle full-text searching you can use the following operators:

NOT

Example: Smith NOT Wesson.

NEAR

Example: Dog NEAR Cat.

Example: NEAR ((DOG, CAT), 6, TRUE).

Related Topics