If I understand your problem right what you probably need is to escape those
characters: http://lucene.apache.org/java/2_9_1/queryparsersyntax.html#Escaping
Special Characters

On 14 October 2010 14:36, Igor Chudov <ichu...@gmail.com> wrote:

> 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