OpenSearch/modules/lang-mustache
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
..
licenses Dependencies: Updates to mustache 0.9.3 (#20337) 2016-09-06 13:31:59 +02:00
src Add profile and explain parameters to template API 2016-09-19 17:52:13 +02:00
build.gradle Dependencies: Updates to mustache 0.9.3 (#20337) 2016-09-06 13:31:59 +02:00