OpenSearch/docs
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
..
community [DOCS] Fixed typo in frontends.asciidoc 2014-01-16 13:19:51 +01:00
groovy-api Cleanup comments and class names s/ElasticSearch/Elasticsearch 2014-01-07 11:21:51 +01:00
java-api Cleanup comments and class names s/ElasticSearch/Elasticsearch 2014-01-07 11:21:51 +01:00
javascript added doc page for the JavaScipt client, and listed it in the clients list. 2013-12-17 15:26:29 -07:00
perl [Docs] Typo 2013-10-15 17:27:05 +02:00
python Fix misspellings. 2013-11-14 20:10:36 -05:00
reference Support multiple rescores 2014-01-23 16:29:07 +01:00
river [DOCS] Fixed typo 2013-10-05 17:10:30 +02:00
ruby [DOCS] Added a basic information about the official Ruby client to documentation 2013-11-04 11:46:36 +01:00
README.md [DOCS] various docs fixes 2014-01-23 10:52:13 +01:00

README.md

The Elasticsearch docs are in AsciiDoc format and can be built using the Elasticsearch documentation build process

See: https://github.com/elasticsearch/docs