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 Derrick Cui <de...@gmail.com> on 2019/05/14 02:52:13 UTC

query keyword but no result (solr 8)

Hi,

I am trying to setup solrcloud, I can index a few documents successfully.
but I cannot get result if I search keyword(without field). if I use
field:keyword, I can get result.

any idea why I get this issue?

Thank you

-- 
Regards,

Derrick Cui
Email: derrickcui@gmail.com

Re: query keyword but no result (solr 8)

Posted by Charles Sanders <cs...@redhat.com>.
Derrick, 
This makes me think you do not have a default query field identified. Look in your solrcong.xml file for the requesthandler you are calling and see if it has the "df" parameter set. Should look something like: 
<str name="df">text</str> 

Hope this helps! 

----- Original Message -----

From: "Derrick Cui" <de...@gmail.com> 
To: solr-user@lucene.apache.org 
Sent: Monday, May 13, 2019 10:52:13 PM 
Subject: query keyword but no result (solr 8) 

Hi, 

I am trying to setup solrcloud, I can index a few documents successfully. 
but I cannot get result if I search keyword(without field). if I use 
field:keyword, I can get result. 

any idea why I get this issue? 

Thank you 

-- 
Regards, 

Derrick Cui 
Email: derrickcui@gmail.com