Implement missing fields

With this changes we can generate a script to order, for example a Random sort.

"sort" : {
    "_script" : { 
        "script" : "Math.random()",
        "type" : "number",
        "params" : {},
        "order" : "asc"
    }
  }


works fine :)