public function createIndex($noMapping = false)
    {
        if ($noMapping) {
            unset($this->indexSettings['body']['mappings']);
        }

        return $this->getClient()->indices()->create($this->indexSettings);
    }
public function createIndex($noMapping = false)
    {
        if ($noMapping) {
            unset($this->indexSettings['body']['mappings']);
        }

        return $this->getClient()->indices()->create($this->indexSettings);
    }
public function createIndex ( $ noMapping = false ) { if ( $ noMapping ) { unset ( $ this -> indexSettings [ 'body' ] [ 'mappings' ] ) ; } return $ this -> getClient ( ) -> indices ( ) -> create ( $ this -> indexSettings ) ; }
Creates fresh elasticsearch index.

@param bool $noMapping Determines if mapping should be included.

@return array
Creates fresh elasticsearch index .