code: func (q *TermQuery) Source() (interface{}, error) {
  	// {"term":{"name":"value"}}
  	source := make(map[string]interface{})
  	tq := make(map[string]interface{})
  	source["term"] = tq
  
  	if q.boost == nil && q.queryName == "" {
  		tq[q.name] = q.value
  	} else {
  		subQ := make(map[string]interface{})
  		subQ["value"] = q.value
  		if q.boost != nil {
  			subQ["boost"] = *q.boost
  		}
  		if q.queryName != "" {
  			subQ["_name"] = q.queryName
  		}
  		tq[q.name] = subQ
  	}
  	return source, nil
  }
docs: // Source returns JSON for the query.