Share via


Logical Operators in Search Expressions

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

By using logical operators, you can refine your search for content by creating more complicated search expressions from simpler ones. As the following table shows, logical operators specify how multiple search terms should be combined in a search query.

Important

You must enter logical operators in all capital letters for the search engine to recognize them.

To search for Use Example Result
Both terms in the same topic AND dib AND palette Topics that contain both "dib" and "palette".
Either term in a topic OR raster OR vector Topics that contain either "raster" or "vector".
First term without the second term in the same topic NOT "operating system" NOT DOS Topics that contain "operating system" but not "DOS".
Both terms, close together in a topic NEAR user NEAR kernel Topics that contain "user" within close proximity of "kernel".

See Also

Full-Text Search Tips Locate Information