code: func (s *SearchSource) TerminateAfter(terminateAfter int) *SearchSource {
  	s.terminateAfter = &terminateAfter
  	return s
  }
docs: // TerminateAfter specifies the maximum number of documents to collect for
  // each shard, upon reaching which the query execution will terminate early.