OpenSearch/plugins
Stuart Tettemer 426c7a5e8f
Scripting: add available languages & contexts API (#49652) (#49815)
Adds `GET /_script_language` to support Kibana dynamic scripting
language selection.

Response contains whether `inline` and/or `stored` scripts are
enabled as determined by the `script.allowed_types` settings.

For each scripting language registered, such as `painless`,
`expression`, `mustache` or custom, available contexts for the language
are included as determined by the `script.allowed_contexts` setting.

Response format:
```
{
  "types_allowed": [
    "inline",
    "stored"
  ],
  "language_contexts": [
    {
      "language": "expression",
      "contexts": [
        "aggregation_selector",
        "aggs"
        ...
      ]
    },
    {
      "language": "painless",
      "contexts": [
        "aggregation_selector",
        "aggs",
        "aggs_combine",
        ...
      ]
    }
...
  ]
}
```

Fixes: #49463 

**Backport**
2019-12-04 16:18:22 -07:00
..
analysis-icu Upgrade lucene to 8.4.0-snapshot-e648d601efb (#49641) 2019-11-28 11:59:58 -05:00
analysis-kuromoji Upgrade lucene to 8.4.0-snapshot-e648d601efb (#49641) 2019-11-28 11:59:58 -05:00
analysis-nori Upgrade lucene to 8.4.0-snapshot-e648d601efb (#49641) 2019-11-28 11:59:58 -05:00
analysis-phonetic Upgrade lucene to 8.4.0-snapshot-e648d601efb (#49641) 2019-11-28 11:59:58 -05:00
analysis-smartcn Upgrade lucene to 8.4.0-snapshot-e648d601efb (#49641) 2019-11-28 11:59:58 -05:00
analysis-stempel Upgrade lucene to 8.4.0-snapshot-e648d601efb (#49641) 2019-11-28 11:59:58 -05:00
analysis-ukrainian Upgrade lucene to 8.4.0-snapshot-e648d601efb (#49641) 2019-11-28 11:59:58 -05:00
discovery-azure-classic Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
discovery-ec2 Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
discovery-gce Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
examples Scripting: add available languages & contexts API (#49652) (#49815) 2019-12-04 16:18:22 -07:00
ingest-attachment Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
mapper-annotated-text Annotated text type should extend TextFieldType (#49555) 2019-11-26 16:52:21 +00:00
mapper-murmur3 Small refactorings to analysis components (#40745) 2019-04-03 14:22:16 +02:00
mapper-size Remove -Xlint exclusions in all plugins. (#40721) 2019-04-04 08:30:34 +02:00
repository-azure Make BlobStoreRepository Aware of ClusterState (#49639) (#49711) 2019-11-29 14:57:47 +01:00
repository-gcs Make BlobStoreRepository Aware of ClusterState (#49639) (#49711) 2019-11-29 14:57:47 +01:00
repository-hdfs Make BlobStoreRepository Aware of ClusterState (#49639) (#49711) 2019-11-29 14:57:47 +01:00
repository-s3 Make BlobStoreRepository Aware of ClusterState (#49639) (#49711) 2019-11-29 14:57:47 +01:00
store-smb Remove usage of FileSwitchDirectory (#42937) 2019-06-12 19:35:27 +02:00
transport-nio Stop Copying Every Http Request in Message Handler (#44564) (#49809) 2019-12-04 08:41:42 +01:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00