code: func (c *DefaultIndexingChain) finishStoredFields() error {
  	var success = false
  	defer func() {
  		if !success {
  			c.docWriter.setAborting()
  		}
  	}()
  	if err := c.storedFieldsWriter.FinishDocument(); err != nil {
  		return err
  	}
  	success = true
  	return nil
  }
docs: /* Calls StoredFieldsWriter.finishDocument(), aborting the segment if it hits any error. */