8fbd1bdd48
The `field_value_factor` function uses the value of a field in the document to influence the score. A query that looks like: { "query": { "function_score": { "query": {"match": { "body": "foo" }}, "functions": [ { "field_value_factor": { "field": "popularity", "factor": 1.1, "modifier": "square" } } ], "score_mode": "max", "boost_mode": "sum" } } } Would have the score modified by: square(1.1 * doc['popularity'].value) Closes #5519 |
||
---|---|---|
.. | ||
all-field.asciidoc | ||
analyzer-field.asciidoc | ||
boost-field.asciidoc | ||
id-field.asciidoc | ||
index-field.asciidoc | ||
parent-field.asciidoc | ||
routing-field.asciidoc | ||
size-field.asciidoc | ||
source-field.asciidoc | ||
timestamp-field.asciidoc | ||
ttl-field.asciidoc | ||
type-field.asciidoc | ||
uid-field.asciidoc |