Hello,

Try:
  String  searchWrd = "kid \"toy\"" OR "kid \"ball\""

You'll have to use a WhitespaceAnalyzer with that, though, or a custom
Analyzer that doesn't remove the escape character (\).

Otis


--- Karthik N S <[EMAIL PROTECTED]> wrote:

> 
> 
> Hi  Guys.
> 
> Apologies.........
> 
> 
> 
> The Query Parser is giving me an Lexical Error
> 
> String  searchWrd = "kid \"toy\" OR \"ball\" "
> 
> org.apache.lucene.queryParser.TokenMgrError: Lexical error at line 1,
> column
> 26. Encountered: <EOF> after : ""
> at
>
org.apache.lucene.queryParser.QueryParserTokenManager.getNextToken(QueryPars
> erTokenManager.java:1050)
> 
> What is this Happening?
> 
> Lucene version :  Lucene 1.4.3.jar
> Jdk version        :  Jdk 1.4.2
> O/s                      :  Win2000
> 
> Some body Please Reply
> 
> 
> 
> 
> 
> 
> WITH WARM REGARDS
> HAVE A NICE DAY
> [ N.S.KARTHIK]
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to