Sunspot은 기본적으로 Solr 번들로 제공되지만 Websolr 인덱스와 완전히 별개입니다. Websolr 인덱스는 heroku addons:open websolr
을 실행하여 볼 수있는 대시 보드를 통해 관리됩니다. 모든 구성 설정이 여기에 적용됩니다. 명령 행에서 websolr을 시작/중지/재시작 할 수 없습니다. documentation 당
:
By default, Sunspot 1.3.0 supports the WEBSOLR_URL
environment variable used by your Heroku application in production. This lets Sunspot perform actions on your index without further configuration, allowing users to get search up and running quickly without necessitating changes to their app’s codebase.
If you would like more fine-grained control over which Solr servers you are using in different environments, you may run script/generate sunspot
from a command line in your application’s root directory to create a Sunspot configuration file at config/sunspot.yml
.
그래서 당신은 단순히 sunspot.yml 파일을 제거 할 수 있어야하고 태양 흑점 단순히
WEBSOLR_URL
의 값을 사용합니다. 또는 다음과 같이 사용할 수 있습니다.
production:
solr:
hostname: index.websolr.com
port: 80
log_level: WARNING
path: /solr/a1b2c3d4e5 (whatever your key is)