Re: Phrase search for more than 4 words throws exception in QueryParser

2004-11-12 Thread Sanyi
It works for me too on linux. Thanks for the test!

--- Morus Walter <[EMAIL PROTECTED]> 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:  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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 




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


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



Re: Phrase search for more than 4 words throws exception in QueryParser

2004-11-11 Thread Morus Walter
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:  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Phrase search for more than 4 words throws exception in QueryParser

2004-11-11 Thread Sanyi
Hi!

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:  after : "\"aa bb cc dd"

It doesn't matter what words I enter, the only thing that matters is the number 
of words which can
be four at max.

Regards,
Sanyi



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


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