How to further boost the score given by field_value_factor with ElasticSearch? How to further boost the score given by field_value_factor with ElasticSearch? elasticsearch elasticsearch

How to further boost the score given by field_value_factor with ElasticSearch?


Function score can be cascaded so a combination of boost_factor and field_value_factor should allow you to achieve the same.

{   "query": {      "function_score": {         "query": {            "match_all": {}         },         "functions": [            {               "boost_factor": <alpha>            },            {               "field_value_factor": {                  "field": "popularity",                  "factor": <beta>,                  "modifier": "log1p"               }            }         ],         "score_mode": "multiply"      }   }}