code: func (s *BulkProcessorService) Before(fn BulkBeforeFunc) *BulkProcessorService {
  	s.beforeFn = fn
  	return s
  }
docs: // Before specifies a function to be executed before bulk requests get committed
  // to Elasticsearch.