forked from laiweijian4/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Zheng, Xiu <zhengxiu@huawei.com> Co-committed-by: Zheng, Xiu <zhengxiu@huawei.com>
16 lines
1.2 KiB
HTML
16 lines
1.2 KiB
HTML
<a name="css_02_0132"></a><a name="css_02_0132"></a>
|
|
|
|
<h1 class="topictitle1">How Do I Create a Type Under an Index in an Elasticsearch 7.<em id="i244964613435">x</em> Cluster?</h1>
|
|
<div id="body0000001475380637"><p id="css_02_0132__p191317614588">In Elasticsearch 7.<em id="css_02_0132__i20425185815430">x</em> and later versions, types cannot be created for indexes.</p>
|
|
<p id="css_02_0132__p448714591548">If you need to use types, add <strong id="css_02_0132__b19816173174513">include_type_name=true</strong> to the command. For example:</p>
|
|
<pre class="screen" id="css_02_0132__screen3576324641">PUT _template/urldialinfo_template?<strong id="css_02_0132__b92582536413">include_type_name=true</strong></pre>
|
|
<p id="css_02_0132__p85381952555">After the command is executed, the following information is displayed:</p>
|
|
<pre class="screen" id="css_02_0132__screen05821318185514">"#! Deprecation: [types removal] Specifying include_type_name in put index template requests is deprecated. The parameter will be removed in the next major version. "</pre>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="css_02_0055.html">Functions</a></div>
|
|
</div>
|
|
</div>
|
|
|