lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gcas...@s-und-n.de
Subject Re: GoogleQueryParser
Date Wed, 11 Sep 2002 09:44:38 GMT

> - 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
| <MINUS:     "-" >
to
| <MINUS:     " -" >

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).

HTH
Guido


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


Mime
View raw message