lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sanyi <need4...@yahoo.com>
Subject Re: Phrase search for more than 4 words throws exception in QueryParser
Date Fri, 12 Nov 2004 09:46:32 GMT
It works for me too on linux. Thanks for the test!

--- Morus Walter <morus.walter@tanto.de> wrote:

> Sanyi writes:
> > 
> > How to perform phrase searches for more than four words?
> > 
> > This works well with 1.4.2:
> > "aa bb cc dd"
> > I pass the query as a command line parameter on XP: "\"aa bb cc dd\""
> > QueryParser translates it to: text:aa text:bb text:cc text:dd
> > Runs, searches, finds proper matches.
> > 
> > This throws exeption in QueryParser:
> > "aa bb cc dd ee"
> > I pass the query as a command line parameter on XP: "\"aa bb cc dd ee\""
> > The exception's text is:
> > : org.apache.lucene.queryParser.ParseException: Lexical error at line 1, column
> > 13.  Encountered: <EOF> after : "\"aa bb cc dd"
> > 
> Works for me on linux:
> java -cp lucene.jar org.apache.lucene.queryParser.QueryParser '"a b c d e f g h i j k
l m n o p
> q r s t u v w x y z"'
> "a b c d e f g h i j k l m n o p q r s t u v w x y z"
> 
> Must be an XP command line problem.
> 
> HTH
> 	Morus
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 
> 



		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message