[ 
https://issues.apache.org/jira/browse/SOLR-8093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mike Mallett updated SOLR-8093:
-------------------------------
    Component/s: documentation

> `bin/solr create_core` syntax doesn't match documentation for '-d' option
> -------------------------------------------------------------------------
>
>                 Key: SOLR-8093
>                 URL: https://issues.apache.org/jira/browse/SOLR-8093
>             Project: Solr
>          Issue Type: Improvement
>          Components: documentation
>    Affects Versions: 5.3
>            Reporter: Mike Mallett
>
> I'm attempting to create a new Solr Core using an existing set of config 
> files. Specifically these are being taken from the Drupal module 
> search_api_solr-7.x-1.9 in this tarball: 
> http://ftp.drupal.org/files/projects/search_api_solr-7.x-1.9.tar.gz
> The config dir located in the tarball is: search_api_solr/solr-conf/5.x/
> This works fine, as I was able to copy this config directory in the shell 
> then use the Solr Admin UI to create the core. No errors were reported in 
> that methodology.
> However, I'm reading the help documentation included by executing the command 
> `bin/solr create_core -help` which states:
> "-d <confdir>  Configuration directory to copy when creating the new core, 
> built-in options are:
>       basic_configs: Minimal Solr configuration
>       data_driven_schema_configs: Managed schema with field-guessing support 
> enabled
>       sample_techproducts_configs: Example configuration with many optional 
> features enabled to demonstrate the full power of Solr
>       If not specified, default is: data_driven_schema_configs
>       Alternatively, you can pass the path to your own configuration 
> directory instead of using one of the built-in configurations, such as: 
> bin/solr create_core -c mycore -d /tmp/myconfig"
> So I tried the following command:
> bin/solr create_core -c testcore -d 
> /opt/drupal/search_api_solr-7.x-1.9/solr-conf/5.x
> This resulted in:
> ERROR: Error CREATEing SolrCore 'testcore': Unable to create core [testcore] 
> Caused by: /var/solr5/data/testcore/data
> I was instructed on IRC that I am using the command incorrectly and that 
> valid options for '-d' are only "basic_configs", 
> "data_driven_schema_configs",  or "sample_techproducts_configs"
> I am unable to create a core from the command line, and I don't know what the 
> process should look like.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to