// Generated from search-request-body_6f9d516e7d0c8c0c8a4b0b9c732e720d_test.go
//
[source, go]
----
res, err := es.Search(
	es.Search.WithIndex("twitter"),
	es.Search.WithBody(strings.NewReader(`{
	  "query": {
	    "term": {
	      "user": "kimchy"
	    }
	  }
	}`)),
	es.Search.WithPretty(),
)
fmt.Println(res, err)
----
