OpenSearch/docs/painless/painless-contexts
Julie Tibshirani 36a3b84fc9
Update the default for include_type_name to false. (#37285)
* Default include_type_name to false for get and put mappings.

* Default include_type_name to false for get field mappings.

* Add a constant for the default include_type_name value.

* Default include_type_name to false for get and put index templates.

* Default include_type_name to false for create index.

* Update create index calls in REST documentation to use include_type_name=true.

* Some minor clean-ups around the get index API.

* In REST tests, use include_type_name=true by default for index creation.

* Make sure to use 'expression == false'.

* Clarify the different IndexTemplateMetaData toXContent methods.

* Fix FullClusterRestartIT#testSnapshotRestore.

* Fix the ml_anomalies_default_mappings test.

* Fix GetFieldMappingsResponseTests and GetIndexTemplateResponseTests.

We make sure to specify include_type_name=true during xContent parsing,
so we continue to test the legacy typed responses. XContent generation
for the typeless responses is currently only covered by REST tests,
but we will be adding unit test coverage for these as we implement
each typeless API in the Java HLRC.

This commit also refactors GetMappingsResponse to follow the same appraoch
as the other mappings-related responses, where we read include_type_name
out of the xContent params, instead of creating a second toXContent method.
This gives better consistency in the response parsing code.

* Fix more REST tests.

* Improve some wording in the create index documentation.

* Add a note about types removal in the create index docs.

* Fix SmokeTestMonitoringWithSecurityIT#testHTTPExporterWithSSL.

* Make sure to mention include_type_name in the REST docs for affected APIs.

* Make sure to use 'expression == false' in FullClusterRestartIT.

* Mention include_type_name in the REST templates docs.
2019-01-14 13:08:01 -08:00
..
index.asciidoc [Docs] Add painless context details for bucket_selector (#35162) 2018-11-08 11:02:30 -05:00
painless-analysis-predicate-context.asciidoc Add conditional token filter to elasticsearch (#31958) 2018-09-05 14:52:43 +01:00
painless-bucket-script-agg-context.asciidoc [Docs] Add painless context details for bucket_script (#35142) 2018-11-06 12:18:29 -05:00
painless-bucket-selector-agg-context.asciidoc [Docs] Add painless context details for bucket_selector (#35162) 2018-11-08 11:02:30 -05:00
painless-context-examples.asciidoc Update the default for include_type_name to false. (#37285) 2019-01-14 13:08:01 -08:00
painless-field-context.asciidoc Painless Context Doc: Add field context example (#35130) 2018-11-08 14:54:20 -05:00
painless-filter-context.asciidoc Painless Context Doc: Add filter context example (#35305) 2018-11-15 14:33:34 -05:00
painless-ingest-processor-context.asciidoc Painless: Add an Ingest Script Processor Example (#32302) 2018-08-09 14:24:55 -07:00
painless-metric-agg-combine-context.asciidoc Update scripted metric docs to use `state` variable (#32695) 2018-08-10 10:21:54 -07:00
painless-metric-agg-init-context.asciidoc Update scripted metric docs to use `state` variable (#32695) 2018-08-10 10:21:54 -07:00
painless-metric-agg-map-context.asciidoc Update scripted metric docs to use `state` variable (#32695) 2018-08-10 10:21:54 -07:00
painless-metric-agg-reduce-context.asciidoc Update scripted metric docs to use `state` variable (#32695) 2018-08-10 10:21:54 -07:00
painless-min-should-match-context.asciidoc Painless Context Doc: Add min should match example (#35423) 2018-11-15 15:10:49 -05:00
painless-reindex-context.asciidoc Painless: Fix documentation links to use existing refs (#32335) 2018-07-25 10:59:25 -07:00
painless-score-context.asciidoc Improve painless docs for score, similarity, weight and sort (#35629) 2018-12-03 17:34:15 +00:00
painless-similarity-context.asciidoc [DOCs] More broken painless links 2018-12-03 12:38:53 -08:00
painless-sort-context.asciidoc Improve painless docs for score, similarity, weight and sort (#35629) 2018-12-03 17:34:15 +00:00
painless-update-by-query-context.asciidoc Painless: Fix documentation links to use existing refs (#32335) 2018-07-25 10:59:25 -07:00
painless-update-context.asciidoc Painless: Fix documentation links to use existing refs (#32335) 2018-07-25 10:59:25 -07:00
painless-watcher-condition-context.asciidoc Scripting: Switch watcher to use joda bwc time objects (#35966) 2018-12-10 17:29:25 -08:00
painless-watcher-transform-context.asciidoc Scripting: Switch watcher to use joda bwc time objects (#35966) 2018-12-10 17:29:25 -08:00
painless-weight-context.asciidoc Improve painless docs for score, similarity, weight and sort (#35629) 2018-12-03 17:34:15 +00:00