def append(self):
target_index = get_index_from_alias(self.alias_name)<EOL>if not target_index:<EOL><INDENT>self.replace()<EOL><DEDENT>else:<EOL><INDENT>self.index_all(target_index)<EOL><DEDENT>
Index documents onto an existing index