Docsity

Understanding Boolean Logic for Effective Database Searches in PubMed, Study notes of Bioinformatics

Toggle sidebar
bg1
Introduction to Boolean Logic
http://www.nlm.nih.gov/bsd/disted/pubmedtutorial/020_200.html
In the context of database searching, Boolean logic refers to the logical
relationships among search terms.
• The Boolean operators AND, OR, NOT can be used to combine search
terms in PubMed.
• In PubMed, Boolean operators must be entered in uppercase letters.
OR:
• Used to retrieve a set in which each citation contains at
least one of the search terms.
• Use OR when you want to pull together articles on
similar topics.
Example: football OR hockey OR soccer
Each circle in the diagram to the right represents the retrieval for each term. The
grey areas represent the retrieval for this example – all records that include any
one of these terms.
The table below represents sample results for each term, then for the terms
combined with OR.
Search terms Results
football 4819
hockey 1058
soccer 2517
football OR hockey OR soccer 6090
NOT:
• Retrieves a set from which citations to articles
containing specified search terms following the
NOT operator are eliminated.
Example: arthritis NOT letter
Note in the diagram to the right and in the sample search results below that the
retrieval is a portion of the total retrieval for arthritis – that portion not including
the term letter.
pf3

Partial preview of the text

Download Understanding Boolean Logic for Effective Database Searches in PubMed and more Study notes Bioinformatics in PDF only on Docsity!

Introduction to Boolean Logic

http://www.nlm.nih.gov/bsd/disted/pubmedtutorial/020_200.html

In the context of database searching, Boolean logic refers to the logical relationships among search terms.

  • The Boolean operators AND, OR, NOT can be used to combine search terms in PubMed.
  • In PubMed, Boolean operators must be entered in uppercase letters.

OR :

  • Used to retrieve a set in which each citation contains at least one of the search terms.
  • Use OR when you want to pull together articles on similar topics.

Example: football OR hockey OR soccer

Each circle in the diagram to the right represents the retrieval for each term. The grey areas represent the retrieval for this example – all records that include any one of these terms.

The table below represents sample results for each term, then for the terms combined with OR.

Search terms Results football 4819 hockey 1058 soccer 2517 football OR hockey OR soccer 6090

NOT:

  • Retrieves a set from which citations to articles containing specified search terms following the NOT operator are eliminated.

Example : arthritis NOT letter

Note in the diagram to the right and in the sample search results below that the retrieval is a portion of the total retrieval for arthritis – that portion not including the term letter.

Search terms Results arthritis 167, letter 617, arthritis NOT letter 159,

  • Use the NOT operator with caution; you might eliminate relevant articles.

AND:

  • Used to retrieve a set in which each citation contains all search terms.

Example: salmonella AND hamburger

Note in the diagram to the right and in the sample search results below that the retrieval is only the overlap of the results for each term – those records in which both terms appear.

Search terms Results salmonella 64810 hamburger 2494 salmonella AND hamburger 12

  • AND is the default operator used in PubMed. If you do not include Boolean operators in your search, PubMed will automatically use AND between terms.

Example: diabetes mellitus phototherapy

PubMed searches as: diabetes mellitus AND phototherapy

Nesting:

  • When using multiple Boolean operators in PubMed, they are processed left to right.

Example: salmonella AND hamburger OR eggs

This will retrieve records that include both terms salmonella AND hamburger as well as all records with the term eggs , whether or not they contain the other two terms.