Practice

Boolean Practice 3: Nested Search

  • 4 October 2022
  • 11 replies
  • 102 views

Userlevel 7
Badge +1

Boolean Practice 3 (Nested Search)

 

In the course Creating Searches with Boolean: Foundations we reviewed the Boolean operators everyone should know in order to create searches.

Here is a safe place where you can practice your new knowledge. You can also practice in Explore and test your search to see if you are getting the results you expected.

 

How it works:

  1. Pick at least one scenario listed below and create a mock search.
  2. Add your search as a reply below. No cheating!
  3. Once you post your search, review what other learners have added to see how it compares.
  4. We will PM you the answer key

 

Let’s Practice 

 

Let’s practice using nested searches.

 

Scenario 1 👵

Find documents that mention Yoda with Luke Skywalker or Princess Leia. Documents should not include the keyword Darth Vader.

 

Scenario 2 🍔

Find documents that mention at least one of the following keywords: hamburgers and veggie burgers. These keywords should appear within 10 words of the keywords drive-through or drive-thru

 

Scenario 3 ✈️

Find documents with the keywords luggage, carry-ons, and checked bag within 10 words of the keyword Delta Airlines. Documents should not contain the keywords travel deals, coupons, or discounts.


11 replies

Userlevel 1
Badge

Scenario 1 👵

Find documents that mention Yoda with Luke Skywalker or Princess Leia. Documents should not include the keyword Darth Vader.

(Yoda AND (“Luke Skywalker” OR “Princess Leia”)) NOT “Darth Vader”

Userlevel 1
Badge

Scenario 1 👵

Find documents that mention Yoda with Luke Skywalker or Princess Leia. Documents should not include the keyword Darth Vader.

 

(“Yoda” AND “Luke Skywalker” AND “Princesa Leia”) NOT “Darth Vader”

Userlevel 1

yoda AND (“luke skywalker” OR “princess leia”) NOT “darth vader”

Userlevel 1

Scenario 1 👵

[Yoda and “Luke Skywalker”] or “Princess Leia”  not “Darth Vader”

 

Scenario 2 🍔

[hamburgers or “veggie burgers.”  near/10 [“drive-through” or “drive-thru”

 

Scenario 3 ✈️

[“luggage. and “carry-ons” and “checked bag”] near/10  “Delta Airlines” not [travel deals,  or coupons or discounts]

Userlevel 1

Scenario 1:
(“Yoda” AND (“Luke Skywalker” OR “Princess Leia”)) NOT “Darth Vader”

Scenario 2:

(“Hamburgers” OR “Veggie Burgers”) NEAR/10 (“Drive-Through” OR “Drive-Thru”)

Scenario 3:

((“Luggage” AND “Carry-Ons” AND “Checked Bag”) NEAR/10 “Delta Airlines”)) NOT (“Travel Deals” OR “Coupons” OR “Discounts”)

 

Userlevel 2

Scenario 1:
(("Yoda” AND (“Luke Skywalker” OR “Princess Leia”))NOT ”Darth Vader”)


Scenario 2:

(("hamburgers” OR “veggie burgers”) NEAR/10 (“drive-through” OR “drive-thru”))

 

Scenario 3:

(((“luggage” OR “carry-ons” OR “checked bag”) NEAR/10 (“Delta Airlines”))NOT(“travel deals” OR “coupons” OR “discounts”))

 

 

Userlevel 5
Badge +2

(“YODA”) AND (“Luke Skywalker”) OR (“Princess Leia”) NOT (“Darth Vader”)

Userlevel 2
Badge

Scenario 1 👵

Find documents that mention Yoda with Luke Skywalker or Princess Leia. Documents should not include the keyword Darth Vader.

((“Yoda” AND (“Luke Skywalker” OR “Luke”) OR (“Princess Leia” OR “Leia”)) NOT (“Darth Vader” OR “Vader”))

 

Scenario 2 🍔

Find documents that mention at least one of the following keywords: hamburgers and veggie burgers. These keywords should appear within 10 words of the keywords drive-through or drive-thru

((“Hamburger” OR “Hamburgers”) AND (“Veggie Burger” OR “Veggie Burgers) NEAR/10 (“Drive-through” OR “Drive-thru”)

 

Scenario 3 ✈️

Find documents with the keywords luggage, carry-ons, and checked bag within 10 words of the keyword Delta Airlines. Documents should not contain the keywords travel dealscoupons, or discounts.

(((Luggage AND (“Carry-on” OR “Carry-ons”) AND “checked bag*”) ONEAR/10 (“Delta Airline” OR “Delta Airlines” OR “Delta”)) NOT ((“Travel Deals” OR “Travel Deal”) OR Coupon* OR Discount*))

Userlevel 2

(“Delta Airlines” NEAR/10 (“luggage” OR “carry-on*” OR “checked bag*”)) 
NOT
(“travel deal*” OR “coupon*” OR “discount*”)

Userlevel 2

((luggage AND “carry-ons” AND “checked bag”) NEAR/10 “Delta Airlines”) NOT (“travel deals” OR coupons OR discounts)

Userlevel 6

Hi @Seb Norfolk and @alana.waloszek - great boolean. You will find the answer key in your private messages. 

Don’t forget to enter the Boolean Competition for a chance to win! 

Reply