2014-04-18 1 views
4

Rails 4.0.1 및 Sunspot 2.1.0을 실행하면 개발 중에 sunspot을 실행할 수 있지만 시도 할 때 이 제안 SOLR 폴더를 제거하고 흑점을 다시 시작, 다른 solr_home 구성을 시도하려고 나는 내 sunspot.ymlSunspot 2.1.0 RSolr :: Error :: Http (RSolr :: Error :: Http - 404를 찾을 수 없음.

production: 
    solr: 
    hostname: ENV['WEBSOLR_URL'] 
    port: 80 
    log_level: WARNING 
    path: /solr/production 
    # read_timeout: 2 
    # open_timeout: 0.5 
development: 
    solr: 
    hostname: localhost 
    port: 8982 
    log_level: INFO 
    path: /solr/development 
    # solr_home: solr 
test: 
    solr: 
    hostname: localhost 
    port: 8981 
    log_level: WARNING 
    path: /solr/test 

참고입니다

RSolr::Error::Http (RSolr::Error::Http - 404 Not Found 
Error:  Not Found 

Request Data: "fq=type%3AMatch&q=arsenal&defType=edismax&start=0&rows=10" 

Backtrace: /Users/bashar/.rvm/gems/[email protected]/gems/rsolr-1.0.10/lib/rsolr/client.rb:283:in `adapt_response' 
/Users/bashar/.rvm/gems/[email protected]/gems/rsolr-1.0.10/lib/rsolr/client.rb:190:in `execute' 
/Users/bashar/.rvm/gems/[email protected]/gems/rsolr-1.0.10/lib/rsolr/client.rb:176:in `send_and_receive' 
/Users/bashar/.rvm/gems/[email protected]/gems/sunspot_rails-2.1.0/lib/sunspot/rails/solr_instrumentation.rb:16:in `block in send_and_receive_with_as_instrumentation' 
/Users/bashar/.rvm/gems/[email protected]/gems/activesupport-4.0.1/lib/active_support/notifications.rb:159:in `block in instrument' 
/Users/bashar/.rvm/gems/[email protected]/gems/activesupport-4.0.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument' 
/Users/bashar/.rvm/gems/[email protected]/gems/activesupport-4.0.1/lib/active_support/notifications.rb:159:in `instrument' 
/Users/bashar/.rvm/gems/[email protected]/gems/sunspot_rails-2.1.0/lib/sunspot/rails/solr_instrumentation.rb:15:in `send_and_receive_with_as_instrumentation' 
(eval):2:in `post' 
/Users/bashar/.rvm/gems/[email protected]/gems/sunspot-2.1.0/lib/sunspot/search/abstract_search.rb:45:in `execute' 
/Users/bashar/.rvm/gems/[email protected]/gems/sunspot-2.1.0/lib/sunspot/session.rb:59:in `search'): 
    app/models/match.rb:483:in `upcoming_games' 
    app/controllers/tickets_controller.rb:34:in `search' 


    Rendered /Users/bashar/.rvm/gems/[email protected]/gems/actionpack-4.0.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.6ms) 
    Rendered /Users/bashar/.rvm/gems/[email protected]/gems/actionpack-4.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms) 
    Rendered /Users/bashar/.rvm/gems/[email protected]l/gems/actionpack-4.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms) 
    Rendered /Users/bashar/.rvm/gems/[email protected]/gems/actionpack-4.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (13.1ms) 

: 쿼리 또는 인덱스를 할, 나는 다음과 같은 오류가 발생합니다 다른 곳에서, 그리고 pid Rails가 연결하려고 시도하는지 확인했습니다. 같은.

다른 비슷한 게시물이 있다는 것을 알고 있지만 나에게 도움이되는 해결책은 없습니다. 어떤 생각?

가치가있는 부분에 대해서는 몽고 이드를 사용하고 있습니다. 그러나 거의 관련이없는 것처럼 보입니다. sunspot.yml에서 생산 설정에서 "경로"지시문을 제거하는

+0

브라우저에서 액세스 할 수 있습니까? 예 : 'http : // localhost : 8982/solr/development/select? q = * : *'? –

답변

0

시도는, 아마도 solr_home는 인덱스에 실제로

이 시도 할 수 있습니다 존재 (/ SOLR) 기본 디렉토리를 가리키는 :

$ ps aux | grep solr

여기에 출력을 게시 하시겠습니까?

관련 문제