0

好吧,我只是在使用 sunspot_cell 实现富文档中的全文搜索。我正在使用回形针进行附件。

我已经完成了所有必需的配置,并将所有 *.jar 文件包含在 solr/lib 目录中。但它无法索引文档。我收到以下 Tika 异常错误:

RSolr::Error::Http (RSolr::Error::Http - 500 Internal Server Error
Error:     org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.pdf.PDFParser@17fc44f
org.apache.solr.common.SolrException: org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.pdf.PDFParser@17fc44f
    at org.apache.solr.handler.extraction.ExtractingDocumentLoader.load(ExtractingDocumentLoader.java:219)
    at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:58)
    at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
    at org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handleRequest(RequestHandlers.java:241)
    at org.apache.solr.core.SolrCore.execute(SolrCore.java:1372)
    at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:356)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:252)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)

我的 Gemfile 看起来像

gem 'sunspot', :git => "git://github.com/sunspot/sunspot.git"
gem 'sunspot_rails', :git => "git://github.com/sunspot/sunspot.git", :require =>  "sunspot_rails"
gem 'sunspot_test'
gem 'sunspot_cell', :git => 'git://github.com/zheileman/sunspot_cell.git'

group :development, :test do
  gem 'sunspot_cell_jars', :git => 'https://github.com/mrcsparker/sunspot_cell_jars.git'
  gem 'sunspot_solr', :git => "git://github.com/sunspot/sunspot.git", :require => "sunspot_solr"
  gem 'progress_bar'
end

对此的任何解决方案。

问候, 卡兰

4

1 回答 1

0

好吧,这似乎不合逻辑,但不知何故我能够找到解决方案。

只需尝试使用 Web-rick 运行您的开发服务器,而不是任何其他 eg:thin 它将开始工作。:)

于 2012-09-27T20:24:07.690 回答