You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Karthik N S <ka...@controlnet.co.in> on 2005/01/17 10:51:47 UTC
QUERYPARSER + LEXECIAL ERROR
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: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: QUERYPARSER + LEXECIAL ERROR
Posted by Otis Gospodnetic <ot...@yahoo.com>.
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 <ka...@controlnet.co.in> 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: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org