You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Kumar, Amit" <am...@contractor.cengage.com> on 2017/12/26 13:39:46 UTC

Solr results in null response

Hi Team,

I have an application running on solr 4.7.0; I am frequently seeing null responses for requests to application. On SOLR console I see below error related to 'grouping parameters'. Although I am setting all grouping parameters in code. Could you please suggest why it is throwing this error, the scenario in which it throws this, how I can rectify it?

Thanks in advance. Below is the full error details:

org.apache.solr.common.SolrException: Specify at least one field, function or query to group by.
         at org.apache.solr.search.Grouping.execute(Grouping.java:298)
         at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:433)
         at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:214)
         at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
         at org.apache.solr.core.SolrCore.execute(SolrCore.java:1916)
         at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:780)
         at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:427)
         at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:217)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
         at com.googlecode.psiprobe.Tomcat70AgentValve.invoke(Tomcat70AgentValve.java:38)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
         at org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBinderValve.java:218)
         at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.java:333)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
         at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
         at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
         at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2462)
         at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2451)
         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
         at java.lang.Thread.run(Thread.java:745)

best,
Amit


Re: Solr results in null response

Posted by Shawn Heisey <ap...@elyograg.org>.
On 12/26/2017 6:39 AM, Kumar, Amit wrote:
> I have an application running on solr 4.7.0; I am frequently seeing null responses for requests to application. On SOLR console I see below error related to 'grouping parameters'. Although I am setting all grouping parameters in code. Could you please suggest why it is throwing this error, the scenario in which it throws this, how I can rectify it?
>
> Thanks in advance. Below is the full error details:
>
> org.apache.solr.common.SolrException: Specify at least one field, function or query to group by.

The first line of the error is telling you what the problem is.  A 
request was received by Solr with grouping enabled, but Solr couldn't 
find any information in the request to tell it what field, function, or 
query it should group by.  Without that information, Solr cannot 
proceed, so it returns an error response.

Can you share a part of your logfile, showing several log entries before 
and after the one log entry that you already shared, as well as that log 
entry?

Because you've provided the servlet container yourself (Tomcat), I have 
absolutely no idea where your logfile has been written.  If you copied 
the logging jars and log4j config from the download, then the logfile 
will be named solr.log, but I do not know where you would find it.

Thanks,
Shawn