Backslashes are used to escape special characters in queries, but the backslash must in turn be encoded in the URL as %5C.

-- Jack Krupansky

-----Original Message----- From: deniz
Sent: Thursday, February 27, 2014 1:36 AM
To: solr-user@lucene.apache.org
Subject: Searching with special chars

Hello,

We are facing some kinda weird problem. So here is the scenario:

We have a frontend and a middle-ware which is dealing with user input search
queries before posting to Solr.

So when a user enters city:Frankenthal_(Pfalz) and then searches, there is
no result although there are fields on some documents matching
city:Frankenthal_(Pfalz). We are aware that we can escape those chars, but
the middleware which is accepting queries is running on a Glassfish server,
which is refusing URLs with backslashes in it, hence using backslashes is
not okay for posting the query.

To make everyone clear about the system it looks like:

(PHP) -> Encoded JSON -> (Glassfish App - Middleware) -> Javabin -> Solr

any other ideas who to deal with queries with special chars like this one?



-----
Zeki ama calismiyor... Calissa yapar...
--
View this message in context: http://lucene.472066.n3.nabble.com/Searching-with-special-chars-tp4120047.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to