Skip to content

Instantly share code, notes, and snippets.

@yesmeck
Last active December 26, 2018 14:30
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Sunspot create solr core
# 假设新建一个叫 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