OpenSearch/docs/reference
Adrien Grand b63b50b945
Give precedence to index creation when mixing typed templates with typeless index creation and vice-versa. (#37871)
Currently if you mix typed templates and typeless index creation or typeless
templates and typed index creation then you will end up with an error because
Elasticsearch tries to create an index that has multiple types: `_doc` and
the explicit type name that you used.

This commit proposes to give precedence to the index creation call so that
the type from the template will be ignored if the index creation call is
typeless while the template is typed, and the type from the index creation
call will be used if there is a typeless template.

This is consistent with the fact that index creation already "wins" if a field
is defined differently in the index creation call and in a template: the
definition from the index creation call is used in such cases.

Closes #37773
2019-01-30 10:28:24 +01:00
..
aggregations Remove more references to type in docs. (#37946) 2019-01-29 10:51:07 -08:00
analysis Remove remaining occurances of "include_type_name=true" in docs (#37646) 2019-01-22 15:13:52 +01:00
cat Remove more include_type_name and types from docs (#37601) 2019-01-18 14:11:18 +01:00
ccr Documented default values for index follow request parameters. (#37917) 2019-01-30 09:37:41 +01:00
cluster [DOCS] Adds overview and API ref for cluster voting configurations (#36954) 2019-01-07 09:11:14 -08:00
commands [DOCS] Update X-Pack terminology in security docs (#36564) 2018-12-19 14:53:37 -08:00
docs Remove more references to type in docs. (#37946) 2019-01-29 10:51:07 -08:00
graph Remove X-Pack centric graph endpoints (#36010) 2018-11-29 07:09:37 -05:00
how-to Remove remaining occurances of "include_type_name=true" in docs (#37646) 2019-01-22 15:13:52 +01:00
ilm Inject Unfollow before Rollover and Shrink (#37625) 2019-01-28 14:09:12 -07:00
images Move ODBC documentation to `elasticsearch` repository (#36955) 2018-12-27 11:55:20 +02:00
index-modules Track total hits up to 10,000 by default (#37466) 2019-01-25 13:45:39 +01:00
indices Remove more include_type_name and types from docs (#37601) 2019-01-18 14:11:18 +01:00
ingest Remove remaining occurances of "include_type_name=true" in docs (#37646) 2019-01-22 15:13:52 +01:00
licensing [DOCS] Synchs titles of X-Pack APIs 2018-12-20 10:27:24 -08:00
mapping Give precedence to index creation when mixing typed templates with typeless index creation and vice-versa. (#37871) 2019-01-30 10:28:24 +01:00
migration Remove implicit index monitor privilege (#37774) 2019-01-29 21:10:03 +02:00
ml [DOCS] Delayed data annotations (#37939) 2019-01-28 13:04:38 -08:00
modules Step down as master when configured out of voting configuration (#37802) 2019-01-29 12:43:04 +01:00
monitoring Deprecate xpack.watcher.history.cleaner_service.enabled (#37782) 2019-01-24 15:31:31 -07:00
query-dsl Track total hits up to 10,000 by default (#37466) 2019-01-25 13:45:39 +01:00
release-notes [DOCS] Various spelling corrections (#37046) 2019-01-07 14:44:12 +01:00
rest-api Added ccr to xpack usage infrastructure (#37256) 2019-01-30 07:58:26 +01:00
rollup [DOCS] Edits rollup API description (#37444) 2019-01-15 08:46:36 -08:00
search Track total hits up to 10,000 by default (#37466) 2019-01-25 13:45:39 +01:00
security Security: remove SSL settings fallback (#36846) 2019-01-14 14:06:22 -07:00
settings Rename security audit.log to _audit.json (#37916) 2019-01-29 14:53:55 +01:00
setup Add OS/architecture classifier to distributions (#37881) 2019-01-29 11:18:30 -08:00
sql SQL: Introduce SQL DATE data type (#37693) 2019-01-24 13:41:58 +02:00
testing Uppercasing some docs section title (#37781) 2019-01-24 22:54:55 +01:00
upgrade [DOCS] Rolling upgrade with old internal indices (#37184) 2019-01-09 18:14:22 +02:00
aggregations.asciidoc [Docs] Update aggregations.asciidoc (#29265) 2018-03-28 15:01:45 +02:00
analysis.asciidoc Remove more include_type_name and types from docs (#37601) 2019-01-18 14:11:18 +01:00
api-conventions.asciidoc Document that date math is locale independent 2019-01-22 12:04:29 +01:00
cat.asciidoc Minor docs cleanup (#37595) 2019-01-18 09:28:48 +01:00
cluster.asciidoc [DOCS] Adds overview and API ref for cluster voting configurations (#36954) 2019-01-07 09:11:14 -08:00
docs.asciidoc Document Seq No powered optimistic concurrency control (#37284) 2019-01-11 07:59:15 -08:00
frozen-indices.asciidoc Expose `search.throttled` on `_cat/indices` (#37073) 2019-01-04 13:49:40 +01:00
getting-started.asciidoc Remove more references to type in docs. (#37946) 2019-01-29 10:51:07 -08:00
glossary.asciidoc Default to one shard (#30539) 2018-05-14 12:22:35 -04:00
gs-index.asciidoc [DOCS] Adding index file for GS "mini book". 2017-07-18 13:44:08 -07:00
how-to.asciidoc Correct grammar in list in how-to docs 2017-01-17 20:57:22 -05:00
index-modules.asciidoc ingest: document index.default_pipeline (#34500) 2018-10-23 13:49:25 -05:00
index.asciidoc Add a `_freeze` / `_unfreeze` API (#35592) 2018-11-20 08:03:24 +01:00
index.x.asciidoc [DOCS] Removes redundant index.asciidoc files (#30707) 2018-05-18 11:05:40 -07:00
indices.asciidoc add split index reference in indices.asciidoc 2017-11-06 12:55:41 +01:00
ingest.asciidoc ingest: document index.default_pipeline (#34500) 2018-10-23 13:49:25 -05:00
mapping.asciidoc Fix duplicate note x-refs in mapping.asciidoc (#37904) 2019-01-28 09:29:07 +00:00
modules.asciidoc [Zen2] Update documentation for Zen2 (#34714) 2018-12-20 13:02:44 +00:00
query-dsl.asciidoc Update query-dsl.asciidoc (#27669) 2017-12-11 18:06:08 +01:00
redirects.asciidoc [Zen2] Update documentation for Zen2 (#34714) 2018-12-20 13:02:44 +00:00
release-notes.asciidoc [DOCS] Adds placeholder for alpha2 release notes 2018-12-11 14:26:41 -08:00
search.asciidoc Make sure to use the type _doc in the REST documentation. (#34662) 2018-10-22 11:54:04 -07:00
setup.asciidoc [DOCS] Intro for adding nodes (#37202) 2019-01-15 11:11:01 -08:00
testing.asciidoc [Docs] Unify spelling of Elasticsearch (#27567) 2017-11-29 09:44:25 +01:00
upgrade.asciidoc Revert "[DOCS] Added 6.3 info & updated the upgrade table. (#30940)" 2018-06-11 22:04:36 -04:00