OpenSearch/docs/reference/search/request
Nik Everett 93a8e80aff Support multiple rescores
Detects if rescores arrive as an array instead of a plain object.  If so
then parse each element of the array as a separate rescore to be executed
one after another.  It looks like this:
   "rescore" : [ {
      "window_size" : 100,
      "query" : {
         "rescore_query" : {
            "match" : {
               "field1" : {
                  "query" : "the quick brown",
                  "type" : "phrase",
                  "slop" : 2
               }
            }
         },
         "query_weight" : 0.7,
         "rescore_query_weight" : 1.2
      }
   }, {
      "window_size" : 10,
      "query" : {
         "score_mode": "multiply",
         "rescore_query" : {
            "function_score" : {
               "script_score": {
                  "script": "log10(doc['numeric'].value + 2)"
               }
            }
         }
      }
   } ]

Rescores as a single object are still supported.

Closes #4748
2014-01-23 16:29:07 +01:00
..
explain.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
fielddata-fields.asciidoc Add the ability to retrieve fields from field data 2014-01-21 09:13:32 -07:00
fields.asciidoc The `fields` option should always return an array for json document fields and single valued field for metadata fields. 2014-01-03 17:29:12 +01:00
from-size.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
highlighting.asciidoc [DOCS] Fixed duplicate ID in highlighting 2014-01-09 00:37:18 +01:00
index-boost.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
min-score.asciidoc Changed the minScore comparator from > to >= 2013-11-29 20:29:20 +01:00
named-queries-and-filters.asciidoc [DOCS] Moved "named filters/queries" up one level 2013-10-10 11:23:08 +02:00
post-filter.asciidoc Renamed top level `filter` to `post_filter`. 2013-12-16 17:10:14 +01:00
preference.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
query.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
rescore.asciidoc Support multiple rescores 2014-01-23 16:29:07 +01:00
script-fields.asciidoc [DOCS] Fixed typos and corrected grammar 2013-12-02 10:08:26 +01:00
scroll.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
search-type.asciidoc Cleanup comments and class names s/ElasticSearch/Elasticsearch 2014-01-07 11:21:51 +01:00
sort.asciidoc [DOCS] Missing sort values now works for all field types 2013-09-04 23:20:55 +02:00
source-filtering.asciidoc [Docs] Added _source filtering to documentation 2013-11-26 19:16:24 +01:00
version.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00