You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Brandon Chapman (JIRA)" <ji...@apache.org> on 2015/04/08 16:04:15 UTC

[jira] [Created] (SOLR-7363) Expand component throws an Exception when the results have been collapsed and grouped

Brandon Chapman created SOLR-7363:
-------------------------------------

             Summary: Expand component throws an Exception when the results have been collapsed and grouped
                 Key: SOLR-7363
                 URL: https://issues.apache.org/jira/browse/SOLR-7363
             Project: Solr
          Issue Type: Bug
          Components: SearchComponents - other
    Affects Versions: 4.10.3
            Reporter: Brandon Chapman


The expand component does not work when used on a result that has been both collapsed and grouped. This is counter-intuitive as collapsing and grouping work together with no issues.

{code}

{
  "responseHeader":{
    "status":500,
    "QTime":1198,
    "params":{
      "fl":"psid",
      "indent":"true",
      "q":"*:*",
      "expand":"true",
      "group.field":"merchant",
      "group":"true",
      "wt":"json",
      "fq":"{!collapse field=groupId}",
      "rows":"1"}},
  "grouped":{
    "merchant":{
      "matches":71652,
      "groups":[{
          "groupValue":"sears",
          "doclist":{"numFound":30672,"start":0,"docs":[
              {
                "psid":"3047500675628000"}]
          }}]}},
  "error":{
    "trace":"java.lang.NullPointerException\n\tat org.apache.solr.handler.component.ExpandComponent.process(ExpandComponent.java:193)\n\tat org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:218)\n\tat org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)\n\tat org.apache.solr.core.SolrCore.execute(SolrCore.java:1976)\n\tat org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:777)\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418)\n\tat org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)\n\tat org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)\n\tat org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)\n\tat org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n\tat java.lang.Thread.run(Thread.java:744)\n",
    "code":500}}
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org