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
..
2014-01-15 17:02:22 +00:00
2014-01-23 10:52:13 +01:00
2014-01-23 10:52:13 +01:00
2014-01-20 19:32:50 +01:00
2014-01-23 10:52:13 +01:00
2014-01-23 10:52:13 +01:00
2014-01-23 16:29:07 +01:00
2014-01-23 10:52:13 +01:00
2013-10-30 16:16:36 +01:00