2012-08-16 51 views
3

我是Solr的新手,剛剛在CentOS上安裝了Tomcat6和Solr 3.6.1。我設法從我的MySQL表中添加一些數據,並使用exampledoc的xml和http://localhost:8080/solr/update來用樣本數據填充索引。我使用的solrconfig.xml一個編輯的版本從examplesdoclocalhost:8080/solr/browse給出了延遲加載錯誤

問題:當我去瀏覽界面在http://localhost:8080/solr/browse,我得到了以下日誌文​​件中的錯誤。我不明白爲什麼會出現錯誤,我有什麼想法可以解決這個問題?

錯誤:

Aug 16, 2012 11:01:56 PM org.apache.solr.core.SolrCore execute 
INFO: [] webapp=/solr path=/browse params={} hits=254 status=0 QTime=4 
Aug 16, 2012 11:01:56 PM org.apache.solr.common.SolrException log 
SEVERE: org.apache.solr.common.SolrException: lazy loading error 
    at org.apache.solr.core.SolrCore$LazyQueryResponseWriterWrapper.getWrappedWriter(SolrCore.java:1763) 
    at org.apache.solr.core.SolrCore$LazyQueryResponseWriterWrapper.getContentType(SolrCore.java:1778) 
    at org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:338) 
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:273) 
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) 
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) 
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) 
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) 
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) 
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) 
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) 
    at java.lang.Thread.run(Thread.java:679) 
Caused by: org.apache.solr.common.SolrException: Error loading class 'sol 

在我solrconfig.xml中,我有/browse請求處理程序:

<requestHandler name="/browse" class="solr.SearchHandler"> 
<lst name="defaults"> 
    <str name="echoParams">explicit</str> 

    <!-- VelocityResponseWriter settings --> 
    <str name="wt">velocity</str> 

    <str name="v.template">browse</str> 
    <str name="v.layout">layout</str> 
    <str name="title">Solritas</str> 

    <str name="df">text</str> 
    <str name="defType">edismax</str> 
    <str name="q.alt">*:*</str> 
    <str name="rows">10</str> 
    <str name="fl">*,score</str> 
    <str name="mlt.qf"> 
    text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 
    </str> 
    <str name="mlt.fl">text,features,name,sku,id,manu,cat</str> 
    <int name="mlt.count">3</int> 

    <str name="qf"> 
     text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 
    </str> 

    <str name="facet">on</str> 
    <str name="facet.field">cat</str> 
    <str name="facet.field">manu_exact</str> 
    <str name="facet.query">ipod</str> 
    <str name="facet.query">GB</str> 
    <str name="facet.mincount">1</str> 
    <str name="facet.pivot">cat,inStock</str> 
    <str name="facet.range.other">after</str> 
    <str name="facet.range">price</str> 
    <int name="f.price.facet.range.start">0</int> 
    <int name="f.price.facet.range.end">600</int> 
    <int name="f.price.facet.range.gap">50</int> 
    <str name="facet.range">popularity</str> 
    <int name="f.popularity.facet.range.start">0</int> 
    <int name="f.popularity.facet.range.end">10</int> 
    <int name="f.popularity.facet.range.gap">3</int> 
    <str name="facet.range">manufacturedate_dt</str> 
    <str name="f.manufacturedate_dt.facet.range.start">NOW/YEAR-10YEARS</str> 
    <str name="f.manufacturedate_dt.facet.range.end">NOW</str> 
    <str name="f.manufacturedate_dt.facet.range.gap">+1YEAR</str> 
    <str name="f.manufacturedate_dt.facet.range.other">before</str> 
    <str name="f.manufacturedate_dt.facet.range.other">after</str> 


    <!-- Highlighting defaults --> 
    <str name="hl">on</str> 
    <str name="hl.fl">text features name</str> 
    <str name="f.name.hl.fragsize">0</str> 
    <str name="f.name.hl.alternateField">name</str> 
</lst> 
<arr name="last-components"> 
    <str>spellcheck</str> 
</arr> 
<!-- 
<str name="url-scheme">httpx</str> 
--> 
</requestHandler> 

回答