code: func (r *SearchRequest) TerminateAfter(docs int) *SearchRequest {
  	r.searchSource = r.searchSource.TerminateAfter(docs)
  	return r
  }
docs: // TerminateAfter, when set, specifies an optional document count,
  // upon collecting which the search query will terminate early.