Skip to content

Instantly share code, notes, and snippets.

@ianneub
Created March 19, 2014 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianneub/6a165d3206ad83dfdbdf to your computer and use it in GitHub Desktop.
Save ianneub/6a165d3206ad83dfdbdf to your computer and use it in GitHub Desktop.
{
"query": {
"function_score": {
"boost_mode": "replace",
"query": {
"filtered": {
"query": {
"multi_match": {
"query": "skarpetki",
"fields": [
"name_en",
"description_en",
"status"
]
}
}
}
},
"functions": [
{
"script_score": {
"script": "return my_computed_score / MAX(_score);"
}
}
]
}
}
}
@RahulKulhari
Copy link

is this working ? MAX is not working for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment