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.


32 replies

Userlevel 2
Badge +1

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 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” AND “Princesa Leia”) NOT “Darth Vader”

Userlevel 2

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

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. 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” AND “Carry-Ons” AND “Checked Bag”) NEAR/10 “Delta Airlines”)) NOT (“Travel Deals” OR “Coupons” OR “Discounts”)

 

Userlevel 3

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

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

Userlevel 6
Badge +25

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 3

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

Userlevel 4
Badge

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

Userlevel 7

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! 

Userlevel 2

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

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

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

Userlevel 3
Badge

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

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

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

Userlevel 2

Sc1 ("Yoda" AND ("Luke Skywalker" OR "Princess Leia")) NOT "Darth Vader"
Sc2 ("hamburgers" OR "veggie burgers") NEAR/10 ("drive-through" OR "drive-thru")
Sc3 (("luggage" AND "carry-ons" AND "checked bag") NEAR/10 "Delta Airlines") NOT ("travel deals" OR "coupons" OR "discounts")

Userlevel 3

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

Userlevel 2

Delta Airlines” NEAR/10 ((“luggage” OR “carry-ons” OR “checked bag” )

NOT (“travel deals” OR “coupons” OR“discounts”))

Userlevel 3

#1: (("Yoda" AND ("Luke Skywalker" OR "Princess Leia") NOT "Darth Vadar"))

#2: (("hamburgers" OR "veggie burgers") near/10 ("drive-through" OR "drive-thru"))

#3: (("luggage" OR "carry-ons" OR "checked bag") near/10 "Delta Airlines" NOT ("travel" OR "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” and “carry-ons” and “checked bag”) near/10 “Delta Airlines”) NOT (“travel deals” or coupons” or “discounts”))

Userlevel 2

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

Userlevel 2
Badge

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)

Userlevel 5
Badge +7

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

 

 

Userlevel 2

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

Userlevel 1

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

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

((“luggage” AND “carry on” AND “checked bag”) NEAR/10 “Delta Airlines”)) NOT (“travels” OR “coupons” OR “discounts”)

Userlevel 7
Badge +1

Hey @Anna G - great boolean! I’ve just sent you the answer keys for boolean practice 1, 2, and 3, so be sure to check your DMs. Thanks for sharing your answers! 🌟

Userlevel 3

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

Comment