OpenSearch/docs/reference/search
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
..
aggregations Terms aggregations: make size=0 return all terms. 2014-01-22 11:05:10 +01:00
facets Documentation typo. 2014-01-20 11:51:08 +01:00
request Support multiple rescores 2014-01-23 16:29:07 +01:00
suggesters Standardized use of “*_length” for parameter names rather than “*_len”. 2014-01-13 15:59:15 +00:00
aggregations.asciidoc Reference docs fixes 2014-01-20 12:14:17 +01:00
count.asciidoc [DOCS] Added a few clarifications to the docs from the issues list 2013-09-04 23:20:55 +02:00
explain.asciidoc [DOCS] updated json responses after #4310 and #4480 2014-01-16 12:01:39 +01:00
facets.asciidoc Cleanup comments and class names s/ElasticSearch/Elasticsearch 2014-01-07 11:21:51 +01:00
more-like-this.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
multi-search.asciidoc [DOCS] Documented rest.action.multi.allow_explicit_index 2013-11-27 17:33:09 +01:00
percolate.asciidoc [SPECS] Updated percolator specs. 2014-01-20 18:18:27 +01:00
request-body.asciidoc Add the ability to retrieve fields from field data 2014-01-21 09:13:32 -07:00
search.asciidoc [DOCS] Reorganised common API conventions 2013-10-13 16:46:56 +02:00
suggesters.asciidoc Add more anchor links to documentation 2013-09-30 13:13:16 -06:00
uri-request.asciidoc Cleanup comments and class names s/ElasticSearch/Elasticsearch 2014-01-07 11:21:51 +01:00
validate.asciidoc Cleanup comments and class names s/ElasticSearch/Elasticsearch 2014-01-07 11:21:51 +01:00