Hi everybody,
Does anyone here successfully implemented function_score with
elasticsearch-php?
Of course, without passing all the body as a JSON string.
I've actually tried but it failed, it looks like it's impossible to pass
the "array+object" located in the "functions" part :
"query": {
"function_score": {
"query": {
"query_string": {
"query": "MyQuery",
}
},
"functions": [{
"script_score": {
"script": "doc['boostfield'].value"
}
}],
"score_mode": "multiply"
}
},
Any help will be appreciated! :)
Thanks,
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/f51a1488-ce22-4119-94ed-57ba13a5cdf2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.