OpenSearch/x-pack
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
..
dev-tools Fixup build after opening x-pack 2018-04-20 15:33:46 -07:00
docs [ML] Return statistics about forecasts as part of the jobsstats and usage API (#31647) 2018-07-04 08:15:45 +02:00
license-tools Remove all unused imports and fix CRLF (#31207) 2018-06-11 15:12:12 +02:00
plugin Scripting: Remove support for deprecated StoredScript contexts (#31394) 2018-07-05 09:30:08 -04:00
qa Fix not waiting for Netty ThreadDeathWatcher in IT (#31758) 2018-07-03 18:55:23 +02:00
test Remove all unused imports and fix CRLF (#31207) 2018-06-11 15:12:12 +02:00
transport-client Migrate x-pack-elasticsearch source to elasticsearch 2018-04-20 15:29:54 -07:00
NOTICE.txt Migrate x-pack-elasticsearch source to elasticsearch 2018-04-20 15:29:54 -07:00
README.md Reorganize license files 2018-04-20 15:33:59 -07:00
build.gradle Build: Fix the license in the pom zip and tar (#31336) 2018-06-14 16:22:00 -04:00

README.md

Elastic License Functionality

This directory tree contains files subject to the Elastic License. The files subject to the Elastic License are grouped in this directory to clearly separate them from files licensed under the Apache License 2.0.