Defining search terms

The AND, OR, NOT, and NEAR operators enable you to precisely define your search by creating a relationship between search terms. The following table shows how you can use each of these operators. If no operator is specified, AND is used. For example, the query "server cgi security" is equivalent to "server AND cgi AND security".

表格 59-2. Search operators

Search forExampleResults
Both terms in the same topichttp AND apacheTopics containing both the words "http" and "apache".
Either term in a topicming OR swflibTopics containing either the word "ming" or the word "swflib" or both.
The first term without the second termxml NOT expatTopics containing the word "xml" but not the word "expat".
Both terms in the same topic, close togetherdatabase NEAR securityTopics containing the word "database" within eight words of the word "security".

注: The |, &, and ! characters can also be used in place of OR AND and NOT respectively. This may not work if you use a very old version of the viewer.