2013-08-05 3 views
3

Solr with Rails - rake sunspot:reindex is not working과 비슷한 문제가 있습니다.Solr이 올바르게 다시 색인되지 않음 - Sunspot Solr with Solr 4

bundle exec rake sunspot:solr:start 

가 잘 작동하지만 내가 할 때 :

gem 'sunspot_solr', github: 'sunspot/sunspot', branch: 'master' 
gem 'sunspot_rails', github: 'sunspot/sunspot', branch: 'master' 

그리고 :

내 Gemfile에이이

bundle exec rake sunspot:solr:reindex 

를 내가 얻을 :

Connection refused - {:data=> 
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><delete><query>type:Service</query></delete>", 
:headers=>{"Content-Type"=>"text/xml"}, :method=>:post, :params=>{:wt=>:ruby}, 
:query=>"wt=ruby", :path=>"update", :uri=> 
#<URI::HTTP:0x007fccf982f348 URL:http://localhost:8982/solr/default/update?wt=ruby>, 
:open_timeout=>nil, :read_timeout=>nil, :retry_503=>nil, 
:retry_after_limit=>nil} 
+0

해당 Solr 로그를 검사하여 서버의 문제점을 확인할 수 있습니까? –

+0

Solr 시작시 서버가'tail -f log/sunspot-solr-development.log'에 도달하지 못했습니다 (올바른 로그를보고 있습니다).하지만 다시 인덱스에서 변경되지 않습니다. – juanpastas

+0

'localhost : 8982'는 의도적으로 설계된 것입니까? 기본 포트는'8983'입니까? –

답변

3

나는 경우이 충분하지만

development: 
    solr: 
    hostname: localhost 
    port: 8982 
    log_level: INFO 
    path: /solr/development 

test: 
    solr: 
    hostname: localhost 
    port: 8981 
    log_level: WARNING 
    path: /solr/test 

확실하지 않음을 sunspot.yml하는 경로를 추가했다. 이것은 Solr 4를 사용하고 구성이 solr/environment URL을 작성하기 때문에 발생합니다.