Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true : <p>I am using <a href="https://github.com/babenkoivan/scout-elasticsearch-driver" rel="noreferrer">https://github.com/babenkoivan/scout-elasticsearch-driver</a> to implement Elasticsearch with Laravel Scout. Ivan mentions this at Github:</p>

<blockquote>
  <p>Indices created in Elasticsearch 6.0.0 or later may only contain a single mapping type. Indices created in 5.x with multiple mapping types will continue to function as before in Elasticsearch 6.x. Mapping types will be completely removed in Elasticsearch 7.0.0.</p>
</blockquote>

<p>If I understood right here: <a href="https://www.elastic.co/guide/en/elasticsearch/reference/master/removal-of-types.html" rel="noreferrer">https://www.elastic.co/guide/en/elasticsearch/reference/master/removal-of-types.html</a> I either need to use: </p>

<p>1) PUT index?include_type_name=true</p>

<p>or, better</p>

<p>2) 
PUT index/_doc/1
{
  "foo": "baz"
}</p>

<p>I am stucked since I have no idea how to use either 1) or 2)</p>

<p>How can I add the parameter include_type_name=true?</p>

<p>How can I create the right mapping without using the include_type_name parameter?</p>

<pre><code>class TestIndexConfigurator extends IndexConfigurator
{
    use Migratable;
    /**
     * @var array
     */
    protected $settings = [
    ];
    protected $name = 'test';
}
</code></pre>
