Re: QueryParser and escaped characters

2004-01-27 Thread Incze Lajos
[...] > so if i *don't* escape the "-", the standard > analyzer *doesn't* split at the dash..isn't that > opposite the expected behavior? > > --David Yes, it is. If you study the standard tokenizer grammar, the dash is allowed inthe NUM, ALPHANUM token type and your is an ALPHANUM. So, it's OK.

Re: QueryParser and escaped characters

2004-01-27 Thread Erik Hatcher
On Jan 27, 2004, at 4:53 PM, [EMAIL PROTECTED] wrote: ah. i see. perhaps the info at the bottom of http://jakarta.apache.org/lucene/docs/queryparsersyntax.html is a bit misleading? I wouldn't call it misleading as much as confusing. QueryParser itself presents quite a few quirks, and combine

Re: QueryParser and escaped characters

2004-01-27 Thread DMGoodstein
luceneTest ariane-1 ariane\-1 [ariane-1] [ariane] [1] so if i *don't* escape the "-", the standard analyzer *doesn't* split at the dash..isn't that opposite the expected behavior? --David - Original Message - From: Erik Hatcher <[EMAIL PROTECTED]> Date:

Re: QueryParser and escaped characters

2004-01-27 Thread Incze Lajos
On Tue, Jan 27, 2004 at 01:00:11PM -0800, [EMAIL PROTECTED] wrote: > I'm constructing a query using queryparser as follows: > > Query query = QueryParser.parse("ariadne\-1", > "default", new > StandardAnalyzer()); > > > when I print out query.toString(), i get: > > def

Re: QueryParser and escaped characters

2004-01-27 Thread DMGoodstein
ah. i see. perhaps the info at the bottom of http://jakarta.apache.org/lucene/docs/queryparsersyntax.html is a bit misleading? --David - Original Message - From: Erik Hatcher <[EMAIL PROTECTED]> Date: Tuesday, January 27, 2004 1:23 pm Subject: Re: QueryParser and escaped char

Re: QueryParser and escaped characters

2004-01-27 Thread Erik Hatcher
Your escape character *is* working to pass it through the parser into the analyzer. It is the analyzer that is splitting at the dash. Phrases get analyzed too. Erik p.s. I wish I had a nickel for every Lucene issue that boils down to QueryParser or Analyzer misunderstanding. :) The two to

QueryParser and escaped characters

2004-01-27 Thread DMGoodstein
I'm constructing a query using queryparser as follows: Query query = QueryParser.parse("ariadne\-1", "default", new StandardAnalyzer()); when I print out query.toString(), i get: default:"ariadne 1" I'm not sure why my escape of "-" is not working? --David Goodstein