QueryParser with Locale Based Operators (French included)
-
Key: LUCENE-682
URL: http://issues.apache.org/jira/browse/LUCENE-682
Project: Lucene - Java
Issue Type: New Feature
: 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
: 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 eas
: That is on purpose, for now. The idea was to introduce a new functionnality
: without changing the way things worked before. But yes, it would be possible
: to make it so that, if wanted, the English operators could be "disabled".
Hmmm... i think i see what you mean, eliminating the english ope
Hi,
I'm making way towards the new version.
I'll keep the &&, || and ! operators always active whatever the language.
As for the bundle.getStringArray(key), it doesn't work for properties files.
A workaround to allow multiple words for each operator would be to put many
on the same line in the
: I'll keep the &&, || and ! operators always active whatever the language.
that's probably wise
: As for the bundle.getStringArray(key), it doesn't work for properties files.
: A workaround to allow multiple words for each operator would be to put many
: on the same line in the property file, a
: I'll make it using a semi column (;) as a separator in the property
file,
: shouldn't be used too often. Please tell me if I should use something
else.
As i said, i don't really have a lot of experience with ResourceBundles,
but from what i can tell, i think you should just use getStringArray a
: Unfortunately, no. If Iuse getStringArray while using a
: PropertyResourceBundle to backup the ResourceBundle, getStringArray(key)
: give a classCastException, as it is just a Wrapper for : (String[])
: getObject(key).
Hmmm... so aparently ResourceBundles suck. good to know.
: Knowing what I