Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Combining Gaussian filter and constant boost factor based on date range filter
{
"functions": [
{
"field_value_factor": {
"field": "popularity",
"modifier": "log2p"
}
},
{
"filter": {
"range": {
"taken_at": {
"gte": "now-6w/w"
}
}
},
"gauss": {
"taken_at": {
"scale": "4w"
}
}
},
{
"filter": {
"range": {
"taken_at": {
"lt": "now-6w/w"
}
}
},
"boost_factor": 0.119657286
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.