def __update_existing_document(self, document): index = document.meta.index document_id = document.uuid updated_on = datetime.datetime.now() data = {"doc": {"updated_on": updated_on}} self.__update_document(data, index, document_id) document.updated_on = ttls.datetime_to_str(updated_on)
def __update_existing_document(self, document, updated_on): index = document.meta.index document_id = document.uuid data = {"doc": {"updated_on": updated_on}} self.__update_document(data, index, document_id) document.updated_on = ttls.datetime_to_str(updated_on)