OpenSearch/docs/reference
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
..
analysis release [1.0.0.RC1] 2014-01-15 17:02:22 +00:00
cat [DOCS] Added documentation for CAT Aliases API 2014-01-20 09:23:00 +01:00
cluster [DOCS] updated json responses after #4310 and #4480 2014-01-16 12:01:39 +01:00
docs [DOCS] Moved termvector and mtermvectors from search to docs 2014-01-22 14:10:26 +01:00
images add docs on new service.bat facility 2013-09-23 18:24:31 +03:00
index-modules [DOCS] various docs fixes 2014-01-23 10:52:13 +01:00
indices Consistent REST API changes for GETting data 2014-01-14 22:33:52 +01:00
mapping [DOCS] various docs fixes 2014-01-23 10:52:13 +01:00
migration Fixed typo 2014-01-20 19:32:50 +01:00
modules [DOCS] various docs fixes 2014-01-23 10:52:13 +01:00
query-dsl [DOCS] various docs fixes 2014-01-23 10:52:13 +01:00
search Support multiple rescores 2014-01-23 16:29:07 +01:00
setup [DOCS] various docs fixes 2014-01-23 10:52:13 +01:00
testing [DOCS]: fixed added / coming tags in docs 2014-01-22 12:02:37 +01:00
analysis.asciidoc Add more anchor links to documentation 2013-09-30 13:13:16 -06:00
api-conventions.asciidoc [DOCS] Tidied up the multi-indices docs 2014-01-15 16:13:38 +01:00
cat.asciidoc [DOCS] Added documentation for CAT Aliases API 2014-01-20 09:23:00 +01:00
cluster.asciidoc [DOCS] Fix HTTP endpoints after stats API changes 2014-01-09 11:30:28 +01:00
docs.asciidoc [DOCS] Moved termvector and mtermvectors from search to docs 2014-01-22 14:10:26 +01:00
glossary.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
index-modules.asciidoc Document `index.shard.check_on_startup`. 2014-01-21 15:55:59 +01:00
index.asciidoc [DOCS] Added breaking changes in 1.0 2014-01-15 17:50:24 +01:00
indices.asciidoc Add a GetFieldMapping API 2013-10-30 16:16:36 +01:00
mapping.asciidoc [DOCS] Moved multi fields documentation into the core-types page 2014-01-22 10:05:58 +01:00
modules.asciidoc [DOCS] Fixed link to tribe.asciidoc 2014-01-13 22:01:12 +01:00
query-dsl.asciidoc Migrated documentation into the main repo 2013-08-29 01:24:34 +02:00
search.asciidoc [DOCS] Moved termvector and mtermvectors from search to docs 2014-01-22 14:10:26 +01:00
setup.asciidoc Remove the "-f" script argument from the documentation 2014-01-17 11:44:30 +01:00
testing.asciidoc [DOCS] Test framework documentation 2013-12-02 18:01:45 +01:00