Last active
April 2, 2018 17:41
-
-
Save jdkealy/a950be8ff0cdfccda101dcb5158cdbb0 to your computer and use it in GitHub Desktop.
WILDCARD / EVENTS SEARCH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:inputs [{:id 1 :headline "YAMBA MALAWI GALA FOR GOOD"}, | |
{:id 2 :headline "ALICE + OLIVIA SUPPORTS GOOD+ IN THE HAMPTONS"}, | |
{:id 3 :headline "GOOP HOSTS IN GOOP HEALTH"} | |
{:id 4 :headline "GOODS FOR GOOD" | |
:id 5 :headline "ZEBRA FOR BAD" | |
}] | |
:searches [ | |
{:input "GOOD", :output [1,2,4]}, | |
{:input "GOOP", :output [3]}]} | |
;; GOOD => GOODNESS, GOOD, GOODS | |
;; GOOD X GOOP | |
{:inputs [{:id 1 :headline "YAMBA MALAWI GALA FOR GOOD" :location "New York City"}, | |
{:id 2 :headline "ALICE + OLIVIA SUPPORTS GOOD+ IN THE HAMPTONS", :location "The Venue East Hampton New York Long Island"}, | |
{:id 3 :headline "GOOP HOSTS IN GOOP HEALTH", "The Staples Center" } | |
{:id 4 :headline "GOODS FOR GOOD" :location "The IAC Building" } | |
{:id 5 :headline "ZEBRA FOR BAD" :location "The Boom Boom ROom The top of the standard hotel" } | |
} {:id 6 :headline "John Keally has sex with a mule" :location "The Boom Boom ROom The top of the standard hotel" } | |
}] | |
:searches [ | |
{:input "GOOD", :output [1,2,4]}, | |
{:input "The", :output [2, 5]}, | |
{:input "THE ZEBRA", :output [5]}, (no stopwords) | |
{:input "GOOD ZEBRA", :output []}, | |
{:input "BAD ZEBRA", :output [5]}, | |
{:input "REALLY BAD ZEBRA", :output [], :did-you-mean [5, 6 ] } | |
]} | |
{:inputs [{:id 1 :headline "GALA FOR GOOD" :location "New York City", :by_line "}, | |
{:id 2 :headline "GOOD FOR GALA", :location "The Venue East Hampton New York Long Island"}, | |
{:id 3 :headline "GOOP HOSTS IN GOOP HEALTH", "The Staples Center" } | |
{:id 4 :headline "GOODS FOR GOOD" :location "The IAC Building" } | |
{:id 5 :headline "ZEBRA FOR BAD" :location "The Boom Boom ROom The top of the standard hotel" } | |
}] | |
:searches [ | |
{:input "GOOD GALA", :output [1,2]}]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment