Do you actually want to escape them with \ ?

Look at 
this: http://search-lucene.com/?q=escape+query+characters&fc_project=Solr

Otis----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/



----- Original Message ----
> From: Igor Chudov <ichu...@gmail.com>
> To: solr-user <solr-user@lucene.apache.org>
> Sent: Thu, October 14, 2010 9:36:31 AM
> Subject: Quoting special characters?
> 
> Let's say that I submit a query for a MoreLikeThis search. The query
> contains  special characters, that Solr/Lucene interprets specially,
> such as colon  ":".
> 
> Example textual query is "Solve a proportion X:2 = 4/5 and find  X".
> (the context is website algebra.com).
> 
> My queries never intend  those characters to be interpreted for
> anything other than literal  value.
> 
> As a first shot, I simply replace them with a space, but I wonder  if I
> would be better off, matching wise, with quoting those  characters
> instead of removing them?
> 
> If so how do I quote such  characters?
> 
> Thanks1
> 
> i
> 

Reply via email to