Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WILDCARD / EVENTS SEARCH
{: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
You can’t perform that action at this time.