lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Savvas-Andreas Moysidis <savvas.andreas.moysi...@googlemail.com>
Subject Re: Quoting special characters?
Date Thu, 14 Oct 2010 13:50:41 GMT
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 <ichudov@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
>

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