Practice

Boolean Practice 3: Nested Search


Userlevel 7
Badge +2

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.


45 replies

Userlevel 2
Badge

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 7
Badge +1

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!

Userlevel 2

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

Userlevel 2
Badge +1

Scenario 3 ✈

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

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

Userlevel 2
Badge

((“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)

Userlevel 7
Badge +14

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

Userlevel 7
Badge +14

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

Userlevel 7
Badge +14

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

Userlevel 7
Badge +1

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

Userlevel 7
Badge +14

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

Thank you!

Userlevel 1
Badge

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

Userlevel 1
Badge

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)

 
 
 
 
 
Badge

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]

Userlevel 1
Badge +2

Scenario 1:

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

Userlevel 1
Badge +2

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

Userlevel 1

Scenario 2 🍔

 

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

 

Userlevel 1
Badge

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

Userlevel 2

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)

Comment