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 eShard <zi...@yahoo.com> on 2014/03/03 03:03:25 UTC

SEVERE: org.apache.solr.common.SolrException: no field name specified in query and no default specified via 'df' param

Hi,
I'm using Solr 4.0 Final (yes, I know I need to upgrade)

I'm getting this error:
SEVERE: org.apache.solr.common.SolrException: no field name specified in
query and no default specified via 'df' param

And I applied this fix: https://issues.apache.org/jira/browse/SOLR-3646 
And unfortunately, the error persists.
I'm using a multi shard environment and the error is only happening on one
of the shards.
I've already updated about half of the other shards with the missing default
text in /browse but the error persists on that one shard.
Can anyone tell me how to make the error go away?

Thanks,



--
View this message in context: http://lucene.472066.n3.nabble.com/SEVERE-org-apache-solr-common-SolrException-no-field-name-specified-in-query-and-no-default-specifiem-tp4120789.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: SEVERE: org.apache.solr.common.SolrException: no field name specified in query and no default specified via 'df' param

Posted by Erick Erickson <er...@gmail.com>.
The browse handler is only one of the request handlers that exists.
If, for instance, your URL is ..../solr/collection1/select then you need
to apply this to the select request handler too.

It would help a lot if you posted the entire URL you are using and
lots more of the stack trace....

Best,
Erick

On Wed, Mar 5, 2014 at 4:01 PM, eShard <zi...@yahoo.com> wrote:
> Ok, I updated all of my solrconfig.xml files and I restarted the tomcat
> server
> AND the errors are still there on 2 out of 10 cores....
> Am I not reloading correctly?
>
> Here's my /browse handler:
>  <requestHandler name="/browse" class="solr.SearchHandler">
>      <lst name="defaults">
>        <str name="echoParams">explicit</str>
>
>
>        <str name="wt">velocity</str>
>        <str name="v.template">browse</str>
>        <str name="v.layout">layout</str>
>        <str name="title">Solritas</str>
>
>
>        <str name="defType">edismax</str>
>        <str name="qf">
>           text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
>        </str>
>        <str name="df">text</str>
>        <str name="mm">100%</str>
>        <str name="q.alt">*:*</str>
>        <str name="rows">10</str>
>        <str name="fl">*,score</str>
>
>        <str name="mlt.qf">
>          text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
>        </str>
>        <str name="mlt.fl">text,features,name,sku,id,manu,cat</str>
>        <int name="mlt.count">3</int>
>
>
>        <str name="facet">on</str>
>        <str name="facet.field">cat</str>
>        <str name="facet.field">manu_exact</str>
>        <str name="facet.query">ipod</str>
>        <str name="facet.query">GB</str>
>        <str name="facet.mincount">1</str>
>        <str name="facet.pivot">cat,inStock</str>
>        <str name="facet.range.other">after</str>
>        <str name="facet.range">price</str>
>        <int name="f.price.facet.range.start">0</int>
>        <int name="f.price.facet.range.end">600</int>
>        <int name="f.price.facet.range.gap">50</int>
>        <str name="facet.range">popularity</str>
>        <int name="f.popularity.facet.range.start">0</int>
>        <int name="f.popularity.facet.range.end">10</int>
>        <int name="f.popularity.facet.range.gap">3</int>
>        <str name="facet.range">manufacturedate_dt</str>
>        <str
> name="f.manufacturedate_dt.facet.range.start">NOW/YEAR-10YEARS</str>
>        <str name="f.manufacturedate_dt.facet.range.end">NOW</str>
>        <str name="f.manufacturedate_dt.facet.range.gap">+1YEAR</str>
>        <str name="f.manufacturedate_dt.facet.range.other">before</str>
>        <str name="f.manufacturedate_dt.facet.range.other">after</str>
>
>
>        <str name="hl">on</str>
>        <str name="hl.fl">text features name</str>
>        <str name="f.name.hl.fragsize">0</str>
>        <str name="f.name.hl.alternateField">name</str>
>
>
>        <str name="spellcheck">on</str>
>        <str name="spellcheck.extendedResults">false</str>
>        <str name="spellcheck.count">5</str>
>        <str name="spellcheck.alternativeTermCount">2</str>
>        <str name="spellcheck.maxResultsForSuggest">5</str>
>        <str name="spellcheck.collate">true</str>
>        <str name="spellcheck.collateExtendedResults">true</str>
>        <str name="spellcheck.maxCollationTries">5</str>
>        <str name="spellcheck.maxCollations">3</str>
>      </lst>
>
>
>      <arr name="last-components">
>        <str>spellcheck</str>
>            <str>manifoldCFSecurity</str>
>      </arr>
>   </requestHandler>
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/SEVERE-org-apache-solr-common-SolrException-no-field-name-specified-in-query-and-no-default-specifiem-tp4120789p4121502.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Re: SEVERE: org.apache.solr.common.SolrException: no field name specified in query and no default specified via 'df' param

Posted by eShard <zi...@yahoo.com>.
Ok, I updated all of my solrconfig.xml files and I restarted the tomcat
server
AND the errors are still there on 2 out of 10 cores....
Am I not reloading correctly?

Here's my /browse handler:
 <requestHandler name="/browse" class="solr.SearchHandler">
     <lst name="defaults">
       <str name="echoParams">explicit</str>

       
       <str name="wt">velocity</str>
       <str name="v.template">browse</str>
       <str name="v.layout">layout</str>
       <str name="title">Solritas</str>

       
       <str name="defType">edismax</str>
       <str name="qf">
          text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
       </str>
       <str name="df">text</str>
       <str name="mm">100%</str>
       <str name="q.alt">*:*</str>
       <str name="rows">10</str>
       <str name="fl">*,score</str>

       <str name="mlt.qf">
         text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
       </str>
       <str name="mlt.fl">text,features,name,sku,id,manu,cat</str>
       <int name="mlt.count">3</int>

       
       <str name="facet">on</str>
       <str name="facet.field">cat</str>
       <str name="facet.field">manu_exact</str>
       <str name="facet.query">ipod</str>
       <str name="facet.query">GB</str>
       <str name="facet.mincount">1</str>
       <str name="facet.pivot">cat,inStock</str>
       <str name="facet.range.other">after</str>
       <str name="facet.range">price</str>
       <int name="f.price.facet.range.start">0</int>
       <int name="f.price.facet.range.end">600</int>
       <int name="f.price.facet.range.gap">50</int>
       <str name="facet.range">popularity</str>
       <int name="f.popularity.facet.range.start">0</int>
       <int name="f.popularity.facet.range.end">10</int>
       <int name="f.popularity.facet.range.gap">3</int>
       <str name="facet.range">manufacturedate_dt</str>
       <str
name="f.manufacturedate_dt.facet.range.start">NOW/YEAR-10YEARS</str>
       <str name="f.manufacturedate_dt.facet.range.end">NOW</str>
       <str name="f.manufacturedate_dt.facet.range.gap">+1YEAR</str>
       <str name="f.manufacturedate_dt.facet.range.other">before</str>
       <str name="f.manufacturedate_dt.facet.range.other">after</str>

       
       <str name="hl">on</str>
       <str name="hl.fl">text features name</str>
       <str name="f.name.hl.fragsize">0</str>
       <str name="f.name.hl.alternateField">name</str>

       
       <str name="spellcheck">on</str>
       <str name="spellcheck.extendedResults">false</str>       
       <str name="spellcheck.count">5</str>
       <str name="spellcheck.alternativeTermCount">2</str>
       <str name="spellcheck.maxResultsForSuggest">5</str>       
       <str name="spellcheck.collate">true</str>
       <str name="spellcheck.collateExtendedResults">true</str>  
       <str name="spellcheck.maxCollationTries">5</str>
       <str name="spellcheck.maxCollations">3</str>           
     </lst>

     
     <arr name="last-components">
       <str>spellcheck</str>
	   <str>manifoldCFSecurity</str>
     </arr>
  </requestHandler>



--
View this message in context: http://lucene.472066.n3.nabble.com/SEVERE-org-apache-solr-common-SolrException-no-field-name-specified-in-query-and-no-default-specifiem-tp4120789p4121502.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: SEVERE: org.apache.solr.common.SolrException: no field name specified in query and no default specified via 'df' param

Posted by eShard <zi...@yahoo.com>.
Hi Erick,
  Let me make sure I understand you:
I'm NOT running SolrCloud; so I just have to put the default field in ALL of
my solrconfig.xml files and then restart and that should be it?
Thanks for your reply,





--
View this message in context: http://lucene.472066.n3.nabble.com/SEVERE-org-apache-solr-common-SolrException-no-field-name-specified-in-query-and-no-default-specifiem-tp4120789p4121495.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: SEVERE: org.apache.solr.common.SolrException: no field name specified in query and no default specified via 'df' param

Posted by Erick Erickson <er...@gmail.com>.
Right, that patch is really about fixing the distribution solrconfig file...

What you need to do is (and I'm assuming you're running SolrCloud)
is change the solrconfig.xml file, push it up to ZK with the client tools
and restart all the nodes in your collection, or reload all the cores. I
don't remember if the collections API that does this for you is in 4.0
or not....

If you're not running SolrCloud, you still need to up date all your configs
_and_ restart (or reload) the cores.

Best,
Erick

On Sun, Mar 2, 2014 at 9:03 PM, eShard <zi...@yahoo.com> wrote:
> Hi,
> I'm using Solr 4.0 Final (yes, I know I need to upgrade)
>
> I'm getting this error:
> SEVERE: org.apache.solr.common.SolrException: no field name specified in
> query and no default specified via 'df' param
>
> And I applied this fix: https://issues.apache.org/jira/browse/SOLR-3646
> And unfortunately, the error persists.
> I'm using a multi shard environment and the error is only happening on one
> of the shards.
> I've already updated about half of the other shards with the missing default
> text in /browse but the error persists on that one shard.
> Can anyone tell me how to make the error go away?
>
> Thanks,
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/SEVERE-org-apache-solr-common-SolrException-no-field-name-specified-in-query-and-no-default-specifiem-tp4120789.html
> Sent from the Solr - User mailing list archive at Nabble.com.