Elastic4s scala query function_score

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?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/49654307-03a0-49c1-8441-2a9412a2bbea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

On Wednesday, November 12, 2014 9:15:49 PM UTC, Manuel Sciuto wrote:

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?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/322090b4-1370-4183-9fc8-adbfd18ea3c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.