Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 86400 invoked from network); 17 Sep 2002 03:48:58 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 17 Sep 2002 03:48:58 -0000 Received: (qmail 28840 invoked by uid 97); 17 Sep 2002 03:49:42 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 28799 invoked by uid 97); 17 Sep 2002 03:49:41 -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 28787 invoked by uid 98); 17 Sep 2002 03:49:40 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <20020917034902.31144.qmail@web12701.mail.yahoo.com> Date: Mon, 16 Sep 2002 20:49:02 -0700 (PDT) From: Otis Gospodnetic Subject: Re: GoogleQueryParser To: Lucene Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --- gcasper@s-und-n.de wrote: > > > - Treat a-b as "a-b" rather that a -b. > > > > I came across the same. Quite an essential issue for some european > sites > (as you surely know :-) > > I'm not very familiar with JavaCC, but I changed QueryParser.jj in > the > following way: > > I changed > | > to > | This would probably break queries like: '-excludethisterm +includethis' (quotes are not part of the query, only to show the issue with " -") > and removed "-" from the list of > | <#_ESCAPED_CHAR: > and > | <#_TERM_START_CHAR: > > This actually changes the behaviour to that of google and I didn't > experience any negative side effects (yet). Note to other users: these changes apparently break the QueryParser (unit tests for QueryParser don't pass after this change). Otis __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: