lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <>
Subject Re: QueryParser syntax French Operator
Date Sun, 08 Oct 2006 03:44:47 GMT
Hi Patrick,

If I were trying to do this, I'd modify QueryParser.jj to construct the grammar for boolean
operators based on something like Locale (or LANG env. variable?).  I'd try adding code a
en_AND = AND
en_OR = OR
en_NOT = NOT
fr_AND = ET
fr_OR = OU

And then:
if (locale is 'fr')
 // construct the grammar with fr_*

Something like that.


----- Original Message ----
From: Patrick Turcotte <>
Sent: Tuesday, October 3, 2006 11:15:56 AM
Subject: QueryParser syntax French Operator


Is there a way to add / replace the text for the boolean operators used
by the query parser?

We would like to replace (or even better, add), "AND", "OR" and "NOT" by
"ET", "OU" and "SAUF".

Is there a way to configure the QueryParser to do it?

We know we could always modify QueryParser.jj to add them to the list,
but we'd rather like not to have to recompile/rejar each time there is a
new version of Lucene.


Patrick Turcotte

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message