code: func (q *Query) resultsAsJSON() string {
  	res := &search.SearchResult{
  		Blobs: q.Blobs,
  		Describe: &search.DescribeResponse{
  			Meta: q.Meta,
  		},
  	}
  	var buf bytes.Buffer
  	enc := json.NewEncoder(&buf)
  	if err := enc.Encode(res); err != nil {
  		fmt.Println(fmt.Sprintf("Error marshaling search results: %v", err))
  		return ""
  	}
  	return buf.String()
  }
docs: // resultsAsJSON returns the current (cumulative) set of results, in JSON form.