// Generated from query-dsl-function-score-query_d88e3a006208680c0a1c6974e3acecbe_test.go
//
[source, go]
----
res, err := es.Search(
	es.Search.WithBody(strings.NewReader(`{
	  "query": {
	    "function_score": {
	      "query": {
	        "match": {
	          "message": "elasticsearch"
	        }
	      },
	      "script_score": {
	        "script": {
	          "source": "Math.log(2 + doc['likes'].value)"
	        }
	      }
	    }
	  }
	}`)),
	es.Search.WithPretty(),
)
fmt.Println(res, err)
----
