OpenSearch/docs/reference/query-dsl
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
..
bool-query.asciidoc Remove the distinction between query and filter context in QueryBuilders (#35354) 2018-12-03 11:49:11 +01:00
boosting-query.asciidoc [Doc] Add clarification to boolean query (#32575) 2018-11-16 11:45:32 +09:00
common-terms-query.asciidoc Remove redundant 'minimum_should_match' 2018-06-27 10:11:07 +02:00
compound-queries.asciidoc
constant-score-query.asciidoc
dis-max-query.asciidoc
exists-query.asciidoc Update the default for include_type_name to false. (#37285) 2019-01-14 13:08:01 -08:00
feature-query.asciidoc Update the default for include_type_name to false. (#37285) 2019-01-14 13:08:01 -08:00
full-text-queries.asciidoc Add intervals query (#36135) 2018-12-14 15:14:00 +00:00
function-score-query.asciidoc Forbid negative scores in functon_score query (#35709) 2018-11-22 06:08:48 -05:00
fuzzy-query.asciidoc Update Fuzzy Query docs to clarify default behavior re max_expansions (#30819) 2018-07-30 13:19:26 -07:00
geo-bounding-box-query.asciidoc Update the default for include_type_name to false. (#37285) 2019-01-14 13:08:01 -08:00
geo-distance-query.asciidoc Update the default for include_type_name to false. (#37285) 2019-01-14 13:08:01 -08:00
geo-polygon-query.asciidoc [Docs] Minor formatting and wording fixes (#35278) 2018-11-06 07:52:13 +01:00
geo-queries.asciidoc Minor corrections in geo-queries.asciidoc (#34314) 2018-10-05 17:12:18 +02:00
geo-shape-query.asciidoc Update the default for include_type_name to false. (#37285) 2019-01-14 13:08:01 -08:00
has-child-query.asciidoc Improve wording 2018-02-15 15:31:00 +00:00
has-parent-query.asciidoc docs: describe parent/child performances 2017-10-26 11:49:13 +02:00
ids-query.asciidoc Deprecate reference to _type in lookup queries (#37016) 2019-01-08 18:46:41 -08:00
intervals-query.asciidoc Add script filter to intervals (#36776) 2018-12-19 11:12:18 +00:00
joining-queries.asciidoc
match-all-query.asciidoc
match-phrase-prefix-query.asciidoc
match-phrase-query.asciidoc Add support to match_phrase query for zero_terms_query. (#29598) 2018-04-19 11:25:27 -07:00
match-query.asciidoc [Docs] Update match-query.asciidoc (#33610) 2018-09-12 14:35:27 +02:00
minimum-should-match.asciidoc
mlt-query.asciidoc Update the default for include_type_name to false. (#37285) 2019-01-14 13:08:01 -08:00
multi-match-query.asciidoc Make limit on number of expanded fields configurable (#35284) 2018-11-08 17:04:40 +01:00
multi-term-rewrite.asciidoc Remove parse field deprecations in query builders (#26711) 2017-09-20 16:22:21 +02:00
nested-query.asciidoc Update the default for include_type_name to false. (#37285) 2019-01-14 13:08:01 -08:00
parent-id-query.asciidoc Update the default for include_type_name to false. (#37285) 2019-01-14 13:08:01 -08:00
percolate-query.asciidoc Update the default for include_type_name to false. (#37285) 2019-01-14 13:08:01 -08:00
prefix-query.asciidoc Remove parse field deprecations in query builders (#26711) 2017-09-20 16:22:21 +02:00
query-string-query.asciidoc Add `minimum_should_match` section to the query_string docs 2018-11-30 16:10:13 +01:00
query-string-syntax.asciidoc Fix docs build. 2018-06-05 14:55:40 +02:00
query_filter_context.asciidoc
range-query.asciidoc Docs: Add section about range query for range type (#35222) 2018-11-06 10:49:12 -05:00
regexp-query.asciidoc Reject regex search if regex string is too long (#28542) 2018-02-23 10:41:24 -08:00
regexp-syntax.asciidoc
script-query.asciidoc [Docs] Fix filter context in script-query.asciidoc (#35677) 2018-11-19 16:30:33 +01:00
script-score-query.asciidoc Add link to script score query in the top level docs (#36416) 2018-12-19 10:18:53 -05:00
simple-query-string-query.asciidoc [Docs] Add description of simple query string flags (#36211) 2018-12-10 01:00:42 +01:00
span-containing-query.asciidoc
span-field-masking-query.asciidoc
span-first-query.asciidoc
span-multi-term-query.asciidoc Improve docs for index_prefixes option (#35778) 2018-11-22 09:20:46 +00:00
span-near-query.asciidoc
span-not-query.asciidoc [Docs]Corrected spelling errors. (#28976) 2018-03-19 10:22:40 -07:00
span-or-query.asciidoc
span-queries.asciidoc Throw a parsing exception when boost is set in span_or query (#28390) (#34112) 2018-11-26 12:15:59 -05:00
span-term-query.asciidoc
span-within-query.asciidoc
special-queries.asciidoc Add link to script score query in the top level docs (#36416) 2018-12-19 10:18:53 -05:00
term-level-queries.asciidoc [Docs] Add term query with normalizer example 2018-05-03 10:23:14 +02:00
term-query.asciidoc Update the default for include_type_name to false. (#37285) 2019-01-14 13:08:01 -08:00
terms-query.asciidoc Deprecate reference to _type in lookup queries (#37016) 2019-01-08 18:46:41 -08:00
terms-set-query.asciidoc Update the default for include_type_name to false. (#37285) 2019-01-14 13:08:01 -08:00
type-query.asciidoc Add a deprecation warning in the type query documentation. (#34017) 2018-09-24 16:30:38 -07:00
wildcard-query.asciidoc
wrapper-query.asciidoc added docs for `wrapper` query. 2018-03-14 11:51:22 +01:00