Reply
Contributor
Posts: 71
Registered: ‎01-19-2017

SOLR query fetches wrong result

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

Cloudera Employee
Posts: 16
Registered: ‎07-30-2018

Re: SOLR query fetches wrong result

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

Announcements