lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joel Nylund <jnyl...@yahoo.com>
Subject # in query
Date Mon, 07 Dec 2009 20:16:44 GMT
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


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message