I followed the tutorial at the last part of this page.
POST /merchantindex/_search
{
"function_score": {
"query": {
{"query_string": { "query": "test"}}
},
"functions": [
{
"script_score":
{
"script": "return _score;"
}
}
]
}
}
What I am expecting the returning of relevance score. I wanted to do some processing with the _score, e.g. _score * some other stuffs but I am just trying if the code works for now.
Error that I got is
"error": "SearchPhaseExecutionException[Failed to execute phase [query], all shards failed;...