public static function putMapping()
    {
        $instance = new static;
        $mapping = $instance->basicElasticParams();
        $params = array(
            '_source'       => array('enabled' => true),
            'properties'    => $instance->getMappingProperties()
        );

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

        return $instance->getElasticClient()->indices()->putMapping($mapping);
    }
public static function putMapping()
    {
        $instance = new static;
        $mapping = $instance->basicElasticParams();
        $params = array(
            '_source'       => array('enabled' => true),
            'properties'    => $instance->getMappingProperties()
        );

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

        return $instance->getElasticClient()->indices()->putMapping($mapping);
    }
public static function putMapping ( ) { $ instance = new static ; $ mapping = $ instance -> basicElasticParams ( ) ; $ params = array ( '_source' => array ( 'enabled' => true ) , 'properties' => $ instance -> getMappingProperties ( ) ) ; $ mapping [ 'body' ] [ $ instance -> getTypeName ( ) ] = $ params ; return $ instance -> getElasticClient ( ) -> indices ( ) -> putMapping ( $ mapping ) ; }
Puts mappings.

@return array
Puts mappings .