code: func (q *CommonTermsQuery) Source() (interface{}, error) {
  	//  {
  	//    "common": {
  	//      "body": {
  	//        "query":            "this is bonsai cool",
  	//        "cutoff_frequency": 0.001
  	//      }
  	//    }
  	//  }
  	source := make(map[string]interface{})
  	body := make(map[string]interface{})
  	query := make(map[string]interface{})
  
  	source["common"] = body
  	body[q.name] = query
  	query["query"] = q.text
  
  	if q.cutoffFreq != nil {
  		query["cutoff_frequency"] = *q.cutoffFreq
  	}
  	if q.highFreq != nil {
  		query["high_freq"] = *q.highFreq
  	}
  	if q.highFreqOp != "" {
  		query["high_freq_operator"] = q.highFreqOp
  	}
  	if q.lowFreq != nil {
  		query["low_freq"] = *q.lowFreq
  	}
  	if q.lowFreqOp != "" {
  		query["low_freq_operator"] = q.lowFreqOp
  	}
  	if q.lowFreqMinimumShouldMatch != "" || q.highFreqMinimumShouldMatch != "" {
  		mm := make(map[string]interface{})
  		if q.lowFreqMinimumShouldMatch != "" {
  			mm["low_freq"] = q.lowFreqMinimumShouldMatch
  		}
  		if q.highFreqMinimumShouldMatch != "" {
  			mm["high_freq"] = q.highFreqMinimumShouldMatch
  		}
  		query["minimum_should_match"] = mm
  	}
  	if q.analyzer != "" {
  		query["analyzer"] = q.analyzer
  	}
  	if q.boost != nil {
  		query["boost"] = *q.boost
  	}
  	if q.queryName != "" {
  		query["_name"] = q.queryName
  	}
  
  	return source, nil
  }
docs: // Creates the query source for the common query.