OpenSearch/docs/reference/migration
Sohaib Iftikhar 40b822c878 Scripting: Remove support for deprecated StoredScript contexts (#31394)
Removes support for storing scripts without the usual json around the
script. So You can no longer do:
```
POST _scripts/<templatename>
{
    "query": {
        "match": {
            "title": "{{query_string}}"
        }
    }
}
```

and must instead do:
```
POST _scripts/<templatename>
{
    "script": {
        "lang": "mustache",
        "source": {
            "query": {
                "match": {
                    "title": "{{query_string}}"
                }
            }
        }
    }
}
```

This improves error reporting when you attempt to store a script but don't
quite get the syntax right. Before, there was a good chance that we'd
think of it as a "raw" template and just store it. Now we won't do that.
Nice.
2018-07-05 09:30:08 -04:00
..
apis [DOCS] Move migration APIs to docs (#31473) 2018-06-21 08:19:23 -07:00
migrate_7_0 Scripting: Remove support for deprecated StoredScript contexts (#31394) 2018-07-05 09:30:08 -04:00
index.asciidoc [DOCS] Adds links to release notes and highlights 2018-06-15 11:04:11 -07:00
migrate_7_0.asciidoc [DOCS] Adds links to release notes and highlights 2018-06-15 11:04:11 -07:00
migration.asciidoc [DOCS] Move migration APIs to docs (#31473) 2018-06-21 08:19:23 -07:00