def patch_collection_search_document(collection_id, update):
 doc = search_services.get_document_from_index(collection_id, SEARCH_INDEX_COLLECTIONS)
 doc.update(update)
 search_services.add_documents_to_index([doc], SEARCH_INDEX_COLLECTIONS)

def patch_collection_search_document ( collection_id , update ) : doc = search_services . get_document_from_index ( collection_id , SEARCH_INDEX_COLLECTIONS ) doc . update ( update ) search_services . add_documents_to_index ( [ doc ] , SEARCH_INDEX_COLLECTIONS )
patches an collections current search document .