def index_collections_given_ids(collection_ids):
 collection_list = get_multiple_collections_by_id(collection_ids, strict=False).values()
 search_services.add_documents_to_index([_collection_to_search_dict(collection) for collection in collection_list if _should_index(collection)], SEARCH_INDEX_COLLECTIONS)

def index_collections_given_ids ( collection_ids ) : collection_list = get_multiple_collections_by_id ( collection_ids , strict = False ) . values ( ) search_services . add_documents_to_index ( [ _collection_to_search_dict ( collection ) for collection in collection_list if _should_index ( collection ) ] , SEARCH_INDEX_COLLECTIONS )
adds the given collections to the search index .