Thanks. That resolves the issue.
Thanks again. -----Original Message----- From: Shawn Heisey <apa...@elyograg.org> Sent: Tuesday, March 19, 2019 7:10 PM To: solr-user@lucene.apache.org Subject: Re: is df needed for SolrCloud replication? On 3/19/2019 4:48 PM, Oakley, Craig (NIH/NLM/NCBI) [C] wrote: > I recently noticed that my solr.log files have been getting the following > error message: > o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: no field > name specified in query and no default specified via 'df' param > > The timing of these messages coincide with pings to leader node of the > SolrCloud from other nodes of the SolrCloud (the message appears only on > whatever node is currently the leader). > > I believe that the user for whom I set up this SolrCloud intentionally > removed df from the defaults section of solrconfig.xml (in order to > streamline out parts of the code which he does not use). > > I have not (yet) noticed any ill effects from this error. Is this error > benign? Or shall I ask the user to reinstate df in the defaults section of > solrconfig.xml? Or can SorlCloud replication be configured to work around any > ill effects that there may be? If you don't define df (which means "default field"), then every query must indicate which field(s) it will query, or you will see that error message. It sounds like the query that is in the ping handler needs to be changed so it includes a field name. Typically ping handlers use *:* for their query, which is special syntax for all documents, and works even when no fields are defined. That query is usually extremely fast. Thanks, Shawn