private function createDocumentFieldsTables(): void
    {
        // Text types
        $this->createDocumentFieldsTable(Types::TEXT, 'text');
        $this->createDocumentFieldsTable(Types::KEYWORD, 'text');

        // Numeric types
        $this->createDocumentFieldsTable(TYPES::FLOAT, 'float');
        $this->createDocumentFieldsTable(TYPES::INTEGER, 'bigint');

        // Date types
        $this->createDocumentFieldsTable(Types::DATE, 'datetime');

        // Boolean types
        $this->createDocumentFieldsTable(Types::BOOLEAN, 'boolean');
    }
private function createDocumentFieldsTables(): void
    {
        // Text types
        $this->createDocumentFieldsTable(Types::TEXT, 'text');
        $this->createDocumentFieldsTable(Types::KEYWORD, 'text');

        // Numeric types
        $this->createDocumentFieldsTable(TYPES::FLOAT, 'float');
        $this->createDocumentFieldsTable(TYPES::INTEGER, 'bigint');

        // Date types
        $this->createDocumentFieldsTable(Types::DATE, 'datetime');

        // Boolean types
        $this->createDocumentFieldsTable(Types::BOOLEAN, 'boolean');
    }
private function createDocumentFieldsTables ( ) : void { // Text types $ this -> createDocumentFieldsTable ( Types :: TEXT , 'text' ) ; $ this -> createDocumentFieldsTable ( Types :: KEYWORD , 'text' ) ; // Numeric types $ this -> createDocumentFieldsTable ( TYPES :: FLOAT , 'float' ) ; $ this -> createDocumentFieldsTable ( TYPES :: INTEGER , 'bigint' ) ; // Date types $ this -> createDocumentFieldsTable ( Types :: DATE , 'datetime' ) ; // Boolean types $ this -> createDocumentFieldsTable ( Types :: BOOLEAN , 'boolean' ) ; }
Create table per mapping type.

@see https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-types.html
Create table per mapping type .