Maybe you can have to escape quotes with the % folowed by the exa code
of the quote like is done by the php urlencode fonction.
"Returns a string in which all non-alphanumeric characters except /-_./
have been replaced with a percent (/%/) sign followed by two hex digits
and spaces encoded as plus (/+/) signs."
Nicolas.
dabboo a écrit :
Hi,
I am implementing phrase search query using my application. I am trying to
search "Glorious Revolution", I am expecting all the records which contains
this as whole string in any of its field should display.
Below is my query:
?q=fieldname:"Glorious Revolution"&qt=dismaxrequest
I am passing this to my solr search engine using httpclient. But it is
thrwoing me Invaild Query exception. If I append double quotes with
backslash, it passes the query but it doesnt shows the right values.
Instead it creates the query like:
isbn13_product_s:\"Glorious Revolution\"
Please suggest how I should tackle this. If I give the phrase search in my
solr console, it returns me the correct results.
Thanks,
Amit Garg