AND, OR, NEAR, and NOT (Boolean) Operators

Click the right-arrow button to add the Boolean operators AND, OR, NEAR, and NOT to your search.

Operator
Searches For
Example
Returns
AND
Both words in the same topic, anywhere in the topic
rain AND snow
All topics containing both the word rain and the word snow anywhere in the topic
OR
Either word in a topic
cat OR feline
All topics containing the word cat or the word feline as well as topics containing both words
NEAR
Both words in the same topic, close together
hike NEAR camp
All topics containing both the word hike and the word camp but only when they appear close together in the topic
NOT
The first word without the second word
orange NOT juice
All topics containing the word orange but not the word juice
Table 1. AND, OR, NEAR, and NOT Operators

  • AND narrows a search by returning only topics containing all of the words you search for. The more words you join together with AND, the fewer topics the search returns.
  • OR expands a search by returning topics containing either word by itself or both words together. Use OR to search for words that are similar in meaning; the more words you join together with OR, the more topics the search returns.
  • NEAR searches for words that appear close together, in any order, in a topic. Using NEAR instead of AND can return a more relevant list of topics.
  • NOT limits your search by returning only topics containing the first word but not the second word, even if the first word also appears in the topic.

Nested Expressions

Use parentheses to group words together when you are using more than one Boolean operator and three or more words. Expressions that are placed between parentheses are evaluated before the rest of the search statement. This allows you to combine several search statements into one, therefore creating more complex searches. For example, water AND (polo OR aerobics) searches for topics containing information about both water polo and water aerobics.

Note

 

If a search contains multiple Boolean operators, but does not contain a nested expression, it is evaluated from left to right. For example, water AND polo OR aerobics (without parentheses) is the same as (water AND polo) OR aerobics, and finds topics containing information about water polo or aerobics, but not water aerobics.

Supported XML Technologies

Learning XML is easy with Stylus Studio, the only XML IDE to support all official W3C XML technologies! Learn more about Stylus Studio's tools and support for XML and related W3C technologies.

Create XML Views of Relational Data Using DataDirect XQuery

DataDirect XQuery simplifies creating, querying and updating of relational databases as XML including Microsoft SQL Server, Oracle, IBM DB2, Sybase and Informix.

XML Schema Tutorial

An XML Schema Tutorial that explores real-world XML Schema development issues, XML Schema examples and various use cases.

XML Videos

Stylus Studio online XML video demonstrations illustrate how easy it is to learn advanced XML editing techniques. Now playing: Java Code Generation, Convert to XML, Grid View, and many other informative video demonstrations.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member