def _process_exclude_dictionary(documents_to_search, exclude_dictionary):
for exclude_property in exclude_dictionary:<EOL><INDENT>exclude_values = exclude_dictionary[exclude_property]<EOL>if not isinstance(exclude_values, list):<EOL><INDENT>exclude_values = [exclude_values]<EOL><DEDENT>documents_to_search = [<EOL>document<EOL>for document in documents_to_search<EOL>if document.get(exclude_property) not in exclude_values<EOL>]<EOL><DEDENT>return documents_to_search<EOL>
remove results that have fields that match in the exclude_dictionary