You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2009/02/21 08:24:14 UTC

[Solr Wiki] Update of "CoreAdmin" by NoblePaul

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by NoblePaul:
http://wiki.apache.org/solr/CoreAdmin

------------------------------------------------------------------------------
  Besides them, a few properties are automatically added in the core scope. They are:
   * `solr.core.name` -- The core's name as defined in solr.xml
   * `solr.core.instanceDir` -- The core's instance directory (i.e. the directory under which that core's `conf/` and `data/` directory are located)
+  * `solr.core.dataDir` -- The core's data directory (i.e. the directory under which that core's index directory are located)
   * `solr.core.configName` -- The name of the core's config file (solrconfig.xml by default)
   * `solr.core.schemaName` -- The name of the core's schema file (schema.xml by default)
  
@@ -64, +65 @@

  The `<core>` tag accepts two attributes:
    *'''name''' - The registered core name.  This will be how the core is accessed.
    *'''instanceDir''' - The ''solr.home'' directory for a given core.
+   *'''dataDir''' - The data directory for a given core. The default is <instanceDir>/data . It can take an absolute path or a relative path w.r.t instanceDir . <!> ["Solr1.4"]
  
  == property ==
  The `<property>` tag accepts two attributes:
@@ -116, +118 @@

  If a core with the same name exists, while the "new" created core is initalizing, the "old" one will continue to accept requests.  Once
  it has finished, all new request will go to the "new" core, and the "old" core will be unloaded.
  
-  http://localhost:8983/solr/admin/cores?action=CREATE&name=coreX&instanceDir=path_to_instance_directory&config=config_file_name.xml&schema=schem_file_name.xml
+  http://localhost:8983/solr/admin/cores?action=CREATE&name=coreX&instanceDir=path_to_instance_directory&config=config_file_name.xml&schema=schem_file_name.xml&dataDir=data
  
- Note that config & schema parameters are optional.
+ Note that config ,schema & dataDir parameters are optional.
  
  == RELOAD ==