// Generated from getting-started_251ea12c1248385ab409906ac64d9ee9_test.go
//
[source, go]
----
res, err := es.Search(
	es.Search.WithIndex("bank"),
	es.Search.WithBody(strings.NewReader(`{
	  "query": {
	    "bool": {
	      "must": {
	        "match_all": {}
	      },
	      "filter": {
	        "range": {
	          "balance": {
	            "gte": 20000,
	            "lte": 30000
	          }
	        }
	      }
	    }
	  }
	}`)),
	es.Search.WithPretty(),
)
fmt.Println(res, err)
----
