Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

SOLR query fetches wrong result

SOLR query fetches wrong result

Contributor

Hi all,

 

 I like to know what is the difference between queries--->  fieldname: value  vs "fieldname": "value"

 

1) In the query menu of solr UI. if I give below query it fetches me all documents even it doesnot match the value in fieldname

fieldname: value 

 

 

2) "fieldname": "value" 

        It fetches correct result.

 

I was wondered what is the difference between 1 vs 2 query?

 

Please help me to understand the difference of both queries.

 

 

Thanks & Regards,

J.Ganesh Kumar

1 REPLY 1
Highlighted

Re: SOLR query fetches wrong result

Rising Star

Hi Ganesh,

 

Could you share the "response header" of the query from solr web UI. We can able to fetch correct result with the below queries.

 

fieldname: "value"  &  fieldname: value 

 

Providing query with "fieldname": "value"  will get you a parse error for fieldname.

 

Thanks

Jerry