Skip to main content

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.

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”)


Hey @bowenchew - welcome back 😁 Great work here, and be sure to check your DMs - I’ll send you the answer keys for boolean practice 2 & 3!


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”


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)


Scenario 3 ✈️

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


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”

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 “veggie burger”) 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” AND “checked bag”) NEAR/10 (“Delta Airlines” OR Delta)) NOT (“travel deal” OR coupon OR discount)


((“delta airlines” OR “delta air”) NEAR/10 (luggage, carry-ons, “Carry Ons”, “checked bag”, “check bag”)) NOT (“travel deals” OR “travel deal” OR coupon* OR kupon OR cupon OR discount* OR diskon)


1 - ("Yoda" AND ("Luke Skywalker" OR "Princess Leia")) NOT "Darth Vader"


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


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


Great boolean, @Sandyreyes - I’ll send you the answer key for this exercise now, so keep an eye on your DMs! ✨


Great boolean, @Sandyreyes - I’ll send you the answer key for this exercise now, so keep an eye on your DMs! ✨

Thank you!


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


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)

 
 
 
 
 

Scenario 1
[Yoda AND ["Luke Skywalker" OR "Princess Leia"]] NOT "Darth Vader"

Scenario 2
drive-thru NEAR/20 [hamburgers OR "veggie burgers"]

Scenario 3
Delta Airlines NEAR/10 [luggage AND carry-ons AND "checked bag"] NOT ["travel deals" OR coupons OR discounts]


Scenario 1:

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


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


Scenario 2 🍔

 

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

 


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

((“hamburgers” OR “Veggie Burgers”) NEAR/10 (“Drive-through” or “Drive-Thru”))

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


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

Scenario 2: (hamburgers OR "vegie 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)


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 

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 OR “carry-ons” OR “checked bag”) NEAR/10 “Delta Airlines”) NOT (“travel deals” OR coupons or discounts).


Hey @Ira - nice work! I’ll get the answer key for this exercise in your DMs right away ✨


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


  1. Yoda AND (( “Luke Skywalker” OR “Princess Leia” ) NOT “Darth Vader”))
  2. (hamburgers OR “veggie burgers” ) NEAR/10 ( “drive through” OR “drive-through” OR “drive-thru” OR “drive thru” )
  3. (luggage AND ( “carry-ons” OR “carry ons” ) AND “checked bag” ) NEAR/10 ( “Delta Airlines” ) NOT ( “travel deals” OR coupons OR discounts)

  1. Yoda AND (( “Luke Skywalker” OR “Princess Leia” ) NOT “Darth Vader”))
  2. (hamburgers OR “veggie burgers” ) NEAR/10 ( “drive through” OR “drive-through” OR “drive-thru” OR “drive thru” )
  3. (luggage AND ( “carry-ons” OR “carry ons” ) AND “checked bag” ) NEAR/10 ( “Delta Airlines” ) NOT ( “travel deals” OR coupons OR discounts)

How do I know if my answers are correct? I never received any follow up DM. 


Comment