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