Adding extra params

With the params script and type, we can create a script to sort randomize for example.

            $sortValuesElastic = $sort->Field()->name("_script")
                                    ->order('asc')
                                    ->script("Math.random()")
                                    ->type("number");