OpenSearch/docs/reference/query-dsl/queries
Lee Hinman 8fbd1bdd48 Add the `field_value_factor` function to the function_score query
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
2014-03-27 14:29:37 -06:00
..
bool-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
boosting-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
common-terms-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
constant-score-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
dis-max-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
filtered-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
flt-field-query.asciidoc Rename edit_distance/min_similarity to fuzziness 2014-01-09 15:14:51 +01:00
flt-query.asciidoc Rename edit_distance/min_similarity to fuzziness 2014-01-09 15:14:51 +01:00
function-score-query.asciidoc Add the `field_value_factor` function to the function_score query 2014-03-27 14:29:37 -06:00
fuzzy-query.asciidoc Rename edit_distance/min_similarity to fuzziness 2014-01-09 15:14:51 +01:00
geo-shape-query.asciidoc [DOCS] Removed outdated new/deprecated version notices 2013-09-03 21:28:31 +02:00
has-child-query.asciidoc [DOCS] Updated memory considerations for p/c queries and filters. 2014-02-26 22:16:51 +01:00
has-parent-query.asciidoc [DOCS] Updated memory considerations for p/c queries and filters. 2014-02-26 22:16:51 +01:00
ids-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
indices-query.asciidoc Removed 0.90.* deprecation and addition notifications 2014-02-07 20:52:49 +01:00
match-all-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
match-query.asciidoc [DOCS] various docs fixes 2014-01-23 10:52:13 +01:00
minimum-should-match.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
mlt-field-query.asciidoc Standardized use of “*_length” for parameter names rather than “*_len”. 2014-01-13 15:59:15 +00:00
mlt-query.asciidoc Standardized use of “*_length” for parameter names rather than “*_len”. 2014-01-13 15:59:15 +00:00
multi-match-query.asciidoc Update Documentation Feature Flags [1.1.0] 2014-03-25 17:51:30 +01:00
multi-term-rewrite.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
nested-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
prefix-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
query-string-query.asciidoc Update Documentation Feature Flags [1.1.0] 2014-03-25 17:51:30 +01:00
query-string-syntax.asciidoc Return `MatchNoDocsQuery` if query string is emtpy 2014-01-20 16:08:57 +01:00
range-query.asciidoc [DOCS] fixed typo 2014-03-26 14:51:02 +01:00
regexp-query.asciidoc [DOCS] Added pages explaining lucene query parser syntax and regular expression syntax 2013-10-07 14:42:49 +02:00
regexp-syntax.asciidoc [DOCS] Added pages explaining lucene query parser syntax and regular expression syntax 2013-10-07 14:42:49 +02:00
simple-query-string-query.asciidoc Update Documentation Feature Flags [1.1.0] 2014-03-25 17:51:30 +01:00
span-first-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
span-multi-term-query.asciidoc RegexpQueryBuilder now implements MultiTermQueryBuilder 2013-10-31 09:12:57 +01:00
span-near-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
span-not-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
span-or-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
span-term-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
template-query.asciidoc Update Documentation Feature Flags [1.1.0] 2014-03-25 17:51:30 +01:00
term-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
terms-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
top-children-query.asciidoc [DOCS] Updated memory considerations for p/c queries and filters. 2014-02-26 22:16:51 +01:00
wildcard-query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00