title: cannot use true (type bool) as type string in function argument
body: <p>I'm trying to get Search results from elastic search, but i'm getting this error:</p>
  
  <p><code>cannot use true (type bool) as type string in function argument</code></p>
  
  <p>Please can anyone can help to resolve it? I'm new to Go programming, so would appreciate suggestions to improve this case in the future.</p>
  
  <p>This my code snippet</p>
  
  <pre><code>func SearchCallback(w *http.ResponseWriter, req *http.Request) {
  
      api.Domain = "127.0.0.1"
  
      // search males
  
      searchQuery := `{
          "query": {
              "term": {"content":"male"}
          }
      }`
      var response2 map[string]interface{}
      response2, err := core.SearchRequest(true, "people", "male", searchQuery, "")
      if err != nil {
          log.Fatalf("The search of males has failed:", err)
      }
      var values2 []interface{}
      for _, v := range response2.Hits.Hits {
          var value2 map[string]interface{}
          err := json.Unmarshal(v.Source, &amp;value2)
          if err != nil {
              log.Fatalf("Failed to unmarshal, line 65", err)
          }
          values2 = append(values2, value2)
      }
      fmt.Println(values2)
  
      jsonV2, err := json.Marshal(values2)
      if err != nil {
          log.Fatalf("Failed marshalling: line 71", err)
      }
      fmt.Println(string(jsonV2))
  }
  </code></pre>