lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Lackhoff <>
Subject Re: Is semicolon a character that needs escaping?
Date Fri, 03 Sep 2010 02:15:04 GMT
On 03.09.2010 00:57 Ken Krugler wrote:

> The docs need to be updated, I believe. From some code I wrote back in  
> 2006...
> [...]

Thanks this explains it very well.

> But in general escaping characters in a query gets tricky - if you can  
> directly build queries versus pre-processing text sent to the query  
> parser, you'll save yourself some pain and suffering.

What do you mean by these two alternatives? That is, what exactly could
I do better?

> Also, since I did the above code the DisMaxRequestHandler has been  
> added to Solr, and it (IIRC) tries to be smart about handling this  
> type of escaping for you.

Dismax is not (yet) an option because we need the full lucene syntax
within the query. Perhaps this will change with the new enhanced dismax
request handler but I didn't play with it enough (will do with the next


View raw message