Last active
December 26, 2018 14:30
-
-
Save yesmeck/5807740 to your computer and use it in GitHub Desktop.
Sunspot create solr core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 假设新建一个叫 core1 的 core | |
mkdir -p /path/to/core1/data | |
cd /path/to/project | |
cp -r `bundle show sunspot_solr`/solr/solr/conf /path/to/core1 | |
bundle exec rake sunspot:solr:start | |
open http://localhost:8982/solr/admin/cores?action=CREATE&name=core1&instanceDir=/path/to/core1&config=/path/to/core1/conf/solrconfig.xml&schema=/path/to/core1/conf/schema.xml&dataDir=/path/to/core1/data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment