Sure you have to escape it! %23

otherwise the browser considers it as a separator between the URL for the server (on the left) and the fragment identifier (on the right) which is not sent the server.

You might want to read about "URL-encoding", escaping with backslash is a shell-thing, not a thing for URLs!

paul


Le 07-déc.-09 à 21:16, Joel Nylund a écrit :

Hi,

How can I put a # sign in a query, do I need to escape it?

For example I want to query books with title that contain #

No work so far:
http://localhost:8983/solr/select?q=textTitle:"#";
http://localhost:8983/solr/select?q=textTitle:#
http://localhost:8983/solr/select?q=textTitle:"\#";

Getting
org.apache.lucene.queryParser.ParseException: Cannot parse 'textTitle:\': Lexical error at line 1, column 12. Encountered: <EOF> after : ""

and sometimes just no response.


thanks
Joel


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to