Solr - 如何获取分布式搜索的术语向量信息

时间:2013-05-07 12:31:41

标签: solr

我正在使用分布式查询来获取记录。维基上的分布式搜索文档说,分布式搜索支持术语向量。但我在查询时遇到错误。不确定我做错了什么。

下面是我使用分布式搜索获取术语向量的查询。

http://localhost:8080/solr/core1/tvrh?q=id:3426545&tv.all=true&f.text.tv.tf_idf=false&f.text.tv.df=false&tv.fl=text&shards=localhost:8080/solr/core1,localhost:8080/solr/core2,localhost:8080/solr/core3&shards.qt=select&debugQuery=on

下面是错误......

java.lang.NullPointerException
        at org.apache.solr.handler.component.TermVectorComponent.finishStage(TermVectorComponent.java:437)
        at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:317)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
        at org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handleRequest(RequestHandlers.java:242)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1817)
        at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:639)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:345)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:141)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
        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:368)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
    at java.lang.Thread.run(Unknown Source) 

有人可以帮我吗?

0 个答案:

没有答案