original_docstring: 
          Update an existing model with a new one.
  
          :raises `ElasticsearchNotFoundError` if there is no existing model
  
          
docstring: Update an existing model with a new one.
  :raises `ElasticsearchNotFoundError` if there is no existing model
docstring_tokens: Update an existing model with a new one . : raises ` ElasticsearchNotFoundError ` if there is no existing model
code: def update(self, identifier, new_instance, **kwargs):
          """
          Update an existing model with a new one.
  
          :raises `ElasticsearchNotFoundError` if there is no existing model
  
          """
          new_instance.id = identifier
          new_instance._id = identifier
          new_instance.updated_at = self.new_timestamp()
  
          new_instance.update(
              using=self.elasticsearch_client,
              index=self.get_index_name(**kwargs),
              **new_instance.to_dict()
          )
  
          return self.retrieve(identifier)
code_tokens: def update ( self , identifier , new_instance , ** kwargs ) : new_instance . id = identifier new_instance . _id = identifier new_instance . updated_at = self . new_timestamp ( ) new_instance . update ( using = self . elasticsearch_client , index = self . get_index_name ( ** kwargs ) , ** new_instance . to_dict ( ) ) return self . retrieve ( identifier )
short_docstring: Update an existing model with a new one.
short_docstring_tokens: Update an existing model with a new one .
comment: """
          Update an existing model with a new one.
  
          :raises `ElasticsearchNotFoundError` if there is no existing model
  
          """