当前位置: 首页 > 知识库问答 >
问题:

Solr错误:在多个集合之间搜索时,querycomponent.mergeids(querycomponent.java:1115)

慕乐语
2023-03-14
   <lst name="defaults">
   <str name="echoParams">explicit</str>
   <int name="rows">10</int>
   <str name="qf">text</str>
   <bool name="preferLocalShards">false</bool>  

跟踪日志

Trace“:”java.lang.nullpointerException\r\n\tat org.apache.solr.handler.component.querycomponent.mergeids(querycomponent.java:1115)\r\n\tat org.apache.solr.handler.component.component.1115)\r\n\tat org.apache.solr.handler.component.component.handlereGularResponses(querycomponent.java:759)\r\n\tat handler.java:426)\r\n\tat org.apache.solr.handler.requesthandlerbase.handlerequest(requesthandlerbase.java:156)\r\n\tat org.apache.solr.core.solrcore.execute(Solrcore.java:2036)\r\n\tat org.apache.solr.servlet.httpsolrcall.execute(httpsolrcall.java:657)\r\n\tat filter.doFilter(solrdispatchfilter.java:257)\r\n\tat org.apache.solr.servlet.solrdispatchfilter.doFilter(Solrdispatchfilter.java:208)\r\n\tat org.eclipse.jetty.servlet.servletHandler$cachedchain.doFilter(ServletHand)ler.java:1668)\r\n\tat org.eclipse.jetty.servlet.servlethandler.doHandl(servlethandler.java:581)\r\n\tat org.eclipse.jetty.server.handler.handl(scopedhandler.java:581)\r\n\tat org.eclipse.jetty.scopedhandler.handl(scopedhandler.java:143)\r\n\tat ty.server.handler.contextHandler.doHandel(contexthandler.java:1160)\r\n\tat org.eclipse.jetty.servlet.servlethandler.doScope(servlethandler.java:511)\r\n\tat org.eclipse.jetty.server.session.sessionhandler.doScope(sessionhandler.java:185)\r\n\tat句柄(ScopedHandler.java:141)\r\n\tat org.eclipse.jetty.server.handler.contextHandlerCollection.handle(contextHandlerCollection.java:213)\r\n\tat org.eclipse.jetty.server.handlerCollection.handl(handlerCollection.handl(handlerCollection.jandl)\r\n\tat org.eclipse.jetty.server.handlerwrapper.handlerwrapper.handlerwrapper.handlerwrapper.java:134)\r\n\tat org.eclipse.jetty.server.server.handle(server.java:518)\r\n\tat org.eclipse.jetty.server.httpchannel.handl(httpchannel.java:518)\r\n\tat在org.eclipse.jetty.io.fillinterest.fillable(fillinterest.java:95)\r\n\tat org.eclipse.jetty.io.selectchannelendpoint$2.run(selectchannelendpoint.java:93)\r\n\tat org.eclipse.jetty.util.thread.strategy.executeProduceConsume.produceandrun(executeProduceConsume.java:246)\r\n\tat edthreadpool.runjob(queuedthreadpool.java:654)\r\n\tat org.eclipse.jetty.util.thread.queuedthreadpool$3.run(queuedthreadpool.java:572)\r\n\tat java.lang.thread.run(Unknown源)\r\n“,

共有1个答案

文凯康
2023-03-14

不能像以前那样在不同的集合中搜索。每个集合将有不同的配置文件。因此,您的前端集合具有/select处理程序,它只能从前端集合请求和获取结果,而不是从Hidden请求和获取结果。

如果要使用来自其他集合索引的结果,则应使用交叉联接。

检查此链接

 类似资料:
  • 我们有数以千计的solr索引/集合共享Nutch抓取的页面。 感谢任何想法或帮助:)

  • 我有一个带有搜索栏的表视图。当我将项目添加到另一个数组时,我能够使用NSPredicate搜索表视图: 现在,我想将集合放在一起,以便tableView DidSelectRowatingIndexPath能够使用category对象。 我像这样加载我的表视图: 如何让我的NSPredicate在收藏中搜索head。描述? 目前,我在运行上述代码时遇到此异常。

  • 我正在遵循django文档将solr与Django-Oscar集成。我在尝试重建索引时遇到以下错误。我如何解决这个问题?

  • 我在我的应用程序中使用Hibernate搜索。其中一个子集合映射为IndexeDemBedded。子对象有两个字段,一个是id,另一个是date(使用date resoultion到毫秒)。当我搜索ID=1(或某个值)并且date等于另一个值时,我会得到第一个和第二个匹配的所有情况的结果。我只想在同一个孩子中获得两个字段匹配的记录,但我在不同的孩子中获得匹配,结果会高得多。下面是代码片段 主类是用

  • 本文向大家介绍solr范围搜索,包括了solr范围搜索的使用技巧和注意事项,需要的朋友参考一下 示例 age:[50 TO 60] 匹配年龄在50和60之间(包括50和60)的文档 age:{50 TO 60} 匹配年龄在50到60之间(不包括50到60)的文档 age:[* TO 60] 匹配年龄小于或等于60的文档 age:[50 TO *] 匹配年龄大于或等于50的文档 age:{50 to

  • 本文向大家介绍solr 布尔搜索,包括了solr 布尔搜索的使用技巧和注意事项,需要的朋友参考一下 示例 +firstname:john +surname:doe 匹配名字为john且姓氏为doe的文档。+前缀表示搜索词必须出现(AND)。 +firstname:john -surname:doe 匹配名字为john而名字不是doe的文档。-前缀表示不得出现搜索词(否)。 +firstname:j