The documentation says that using a field_value_factor value of:
"field_value_factor": {
"field": "popularity",
"factor": 1.2,
"modifier": "sqrt",
"missing": 1
}
"Which will translate into the following formula for scoring:
sqrt(1.2 * doc['popularity'].value)
"
But what I do not understand is what is done with sqrt(1.2 * doc['popularity'].value)
? Is it multiplied by the original score of each hit to create a new score? Is it added? Can I change whether it is multiplied or added?
Is that what is defined in function_score["boost_mode"]?