Right, you're conflating two separate issues
1> URL escaping. the & is a special character in the URL, entirely
    separate from Solr. Try using %26 rather than \&
2> Query parsing. Once the string gets through the URL and servlet
   container, it's in query parsing land, where the escaping of
   _query_ special characters like '-' counts.
3> And just to confuse matters a LOT, when you're looking at
     URLs, space is translated to '+'. So when you look in your log
     file, you'll see the query q=me myself reported as
     q=me+myself which has nothing to do with the Lucene MUST
    (+) operator....

Best
Erick

On Thu, Sep 27, 2012 at 7:49 AM, aniljayanti <anil.jaya...@gmail.com> wrote:
> Hi,
>
> thanks,
>
> I tried with below query getting result.
>
> q=Cheat \- Album Version
>
> But getting error with below.
>
> q=Oot \& Aboot
>
> Error message :
> --------------
> message org.apache.lucene.queryParser.ParseException: Cannot parse 'Oot \':
> Lexical error at line 1, column 6. Encountered: <EOF> after : ""
>
> description The request sent by the client was syntactically incorrect
> (org.apache.lucene.queryParser.ParseException: Cannot parse 'Oot \': Lexical
> error at line 1, column 6. Encountered: <EOF> after : "").
>
> anilJayanti
>
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Problem-with-Special-Characters-in-SOLR-Query-tp4010712p4010720.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to