public function coreCreate($core, $instancedir, $config = null, $schema = null, $datadir = null)
    {
        $args = array('instanceDir' => $instancedir);
        if ($config) {
            $args['config'] = $config;
        }
        if ($schema) {
            $args['schema'] = $schema;
        }
        if ($datadir) {
            $args['dataDir'] = $datadir;
        }

        return $this->coreCommand('CREATE', $core, $args);
    }
public function coreCreate($core, $instancedir, $config = null, $schema = null, $datadir = null)
    {
        $args = array('instanceDir' => $instancedir);
        if ($config) {
            $args['config'] = $config;
        }
        if ($schema) {
            $args['schema'] = $schema;
        }
        if ($datadir) {
            $args['dataDir'] = $datadir;
        }

        return $this->coreCommand('CREATE', $core, $args);
    }
public function coreCreate ( $ core , $ instancedir , $ config = null , $ schema = null , $ datadir = null ) { $ args = array ( 'instanceDir' => $ instancedir ) ; if ( $ config ) { $ args [ 'config' ] = $ config ; } if ( $ schema ) { $ args [ 'schema' ] = $ schema ; } if ( $ datadir ) { $ args [ 'dataDir' ] = $ datadir ; } return $ this -> coreCommand ( 'CREATE' , $ core , $ args ) ; }
Create a new core
@param $core string - The name of the core
@param $instancedir string - The base path of the core on the server
@param $config string - The filename of solrconfig.xml on the server. Default is $instancedir/solrconfig.xml
@param $schema string - The filename of schema.xml on the server. Default is $instancedir/schema.xml
@param $datadir string - The path to store data for this core on the server. Default depends on solrconfig.xml
@return Apache_Solr_Response
Create a new core