def orSearch(inverseIndex, query):
    """
    Input: an inverse index, as created by makeInverseIndex, and a list of words to query
    Output: the set of document ids that contain _any_ of the specified words
    """
    rsetlist = [inverseIndex[word] for word in query if word in inverseIndex ]
    results = set.union(*rsetlist)
    return results