Queries with Boolean Operators

Boolean operators are used to exclusively include or exclude results matching the search terms. Following are some general examples to illustrate how one can use Boolean operators to broaden and narrow searches.

  • Boolean operators must be capitalized in order to be recognized as such.
  • Terms are automatically ANDed unless specified otherwise.

OR
Use OR to search alternate words. OR must be in uppercase.

  • gay OR lesbian OR transgender sports
  • Returns catalog records that contain all, some or any of the terms. This Boolean operator will broaden the search.

AND
Use AND to require a word. AND must be in uppercase.

  • subject: vocational guidance AND energy industries
  • Returns catalog records with both "vocational guidance" and "energy industries" (or stemmed versions thereof) in the subject fields. This Boolean operator will narrow the search.

NOT
Use - (minus) or NOT to exclude a word. NOT must be in uppercase.

  • klezmer -russian
  • Returns catalog records that contain only the term "klezmer" and excludes records that contain the term "russian" or "klezmer russian."

Match All/Any Fields in Advanced Search

  • Select "all" to require matching in all the fields in which you enter search terms and checked off attributes. This is essentially AND-ing all terms and attributes.
  • Select "any" to find matches in at least one of the fields in which you enter terms and checked off attributes. This is essentially OR-ing all terms and attributes

advanced_boolean.png

Groups: