Use updateRequest instead of IndexRequest

Use by default UpdateRequest instead of IndexRequest. Added support of script parameters.