'What does this elasticsearch query mean?
I want to find best movie/webseries from past 6 months to now and it should have good rating also.
POST sample-movie-2022.02.08/_search
{
"query": {
"function_score": {
"functions": [
{
"gauss": {
"rating": {
"origin": "10",
"scale": "1"
}
}
},
{
"gauss": {
"release_date": {
"origin": "now",
"scale": "180d"
}
}
}
]
}
}
}
The query gives different score when i change rating scale like 1,7,8.I actually don't know what does it mean in rating but i understood origin and scaling in relase_date
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
