lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: [jira] Created: (LUCENE-682) QueryParser with Locale Based Operators (French included)
Date Fri, 27 Oct 2006 00:28:37 GMT

: Here is a version of the QueryParser that can "understand" the AND, OR
: and NOT keyword in other languages.

I finally got a chance to skim this ... i don't know a lot about javaCC or
ResourceBundles, but this looks really cool to me.  Mainly because it
looks like this would make it really easy to completley disable the use of
"AND" "OR" and "NOT" as well -- so they can be treated as regular terms
(at the moment there is no way to "escape" them) by directly modify
andCases, orCases, and notCases (in a subclass, or through new methods)


...I don't see anything in the patch that would eliminate the use of "AND"
to mean *AND* if a ResourceBundle is used ... are the English operators
still in effect when the ResourceBundle operators are specified?

Also: i noticed you used ResourceBundle.getString for each of the keys,
and then put it in a single element ArrayList .. why not use
ResourceBundle.getStringArray so that the bundle can define multiple words
to foreach operator?  (note: we'd probably want to put them in a Set at
that point)


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

View raw message