Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 50449 invoked from network); 27 Jan 2004 21:39:52 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 27 Jan 2004 21:39:52 -0000 Received: (qmail 63054 invoked by uid 500); 27 Jan 2004 21:39:32 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 62974 invoked by uid 500); 27 Jan 2004 21:39:32 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 62944 invoked from network); 27 Jan 2004 21:39:31 -0000 Received: from unknown (HELO c000.snv.cp.net) (209.228.32.83) by daedalus.apache.org with SMTP; 27 Jan 2004 21:39:31 -0000 Received: (cpmta 499 invoked from network); 27 Jan 2004 13:23:31 -0800 Received: from 24.51.109.181 (HELO ?192.168.1.102?) by smtp.hatcher.net (209.228.32.83) with SMTP; 27 Jan 2004 13:23:31 -0800 X-Sent: 27 Jan 2004 21:23:31 GMT Mime-Version: 1.0 (Apple Message framework v612) In-Reply-To: <2702682713f3.2713f3270268@lbl.gov> References: <2702682713f3.2713f3270268@lbl.gov> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <0B7F45EA-510F-11D8-B5A7-000393A564E6@ehatchersolutions.com> Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: QueryParser and escaped characters Date: Tue, 27 Jan 2004 16:23:26 -0500 To: "Lucene Users List" X-Mailer: Apple Mail (2.612) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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 together make for some head-scratching fun, that is for sure. On Jan 27, 2004, at 4:00 PM, DMGoodstein@lbl.gov 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: > > default:"ariadne 1" > > I'm not sure why my escape of "-" is not working? > > --David Goodstein > > > > > --------------------------------------------------------------------- > 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