how I can create the query with client elastic4s scala?
I call using marvel/sense
GET /business/_search
{
"query": {
"function_score": {
"query": {
"match": {
"name": "my text"
}
},
"script_score": {
"script": "_score + log(doc['reviews'].value + 1 )",
"lang": "groovy"
}
}
},
"facets": {
"industry": {
"terms": {
"fields": ["type", "industry"]
}
}
},
"size": 10
}
But how I can create the query with elastic4s?