def booleanSearch(query, stop_list, dict_book):
    pipe = Preprocessing()
    pipe.stop_word = stop_list
    tokens = pipe.tokenizer(query)
    stems = pipe.stemmer(tokens)
    if dict_book.__contains__(stems):
        posting: set = dict_book[stems]
    else:
        return []
    doc_list = []
    for i in posting:
        doc_list.append(i)
    return doc_list
def booleanSearch(query, stop_list, dict_book):
    pipe = Preprocessing()
    pipe.stop_word = stop_list
    tokens = pipe.tokenizer(query)
    stems = pipe.stemmer(tokens)
    if dict_book.__contains__(stems):
        posting: set = dict_book[stems]
    else:
        return []
    doc_list = []
    for i in posting:
        doc_list.append(i)
    return doc_list