public static function putMapping($ignoreConflicts = false)
    {
        $instance = new static();

        $mapping = $instance->getBasicEsParams();

        $params = [
            '_source'       => ['enabled' => true],
            'properties'    => $instance->getMappingProperties(),
        ];

        $mapping['body'][$instance->getTypeName()] = $params;

        return $instance->getElasticSearchClient()->indices()->putMapping($mapping);
    }