David Pilato ed4d0881b1 Add profile and explain parameters to template API
We can now run templates using `explain` and/or `profile` parameters.
Which is interesting when you have defined a complicated profile but want to debug it in an easier way than running the full query again.

You can use `explain` parameter when running a template:

```js
GET /_search/template
{
  "file": "my_template",
  "params": {
    "status": [ "pending", "published" ]
  },
  "explain": true
}
```

You can use `profile` parameter when running a template:

```js
GET /_search/template
{
  "file": "my_template",
  "params": {
    "status": [ "pending", "published" ]
  },
  "profile": true
}
```
2016-09-19 17:52:13 +02:00
..
2016-09-19 07:54:04 -04:00
2016-08-31 15:51:52 -04:00
2016-09-02 18:22:30 -04:00
2016-09-19 09:01:16 +02:00
2016-07-07 17:47:19 +02:00
2016-07-07 14:44:03 -04:00