[jira] Created: (LUCENE-682) QueryParser with Locale Based Operators (French included)

2006-10-13 Thread Patrick Turcotte (JIRA)
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

Re: [jira] Created: (LUCENE-682) QueryParser with Locale Based Operators (French included)

2006-10-26 Thread Chris Hostetter
: 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

Re: [jira] Created: (LUCENE-682) QueryParser with Locale Based Operators (French included)

2006-10-26 Thread Patrick Turcotte
: 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

Re: [jira] Created: (LUCENE-682) QueryParser with Locale Based Operators (French included)

2006-10-27 Thread Chris Hostetter
: 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

Re: [jira] Created: (LUCENE-682) QueryParser with Locale Based Operators (French included)

2006-10-28 Thread Patrick Turcotte
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

Re: [jira] Created: (LUCENE-682) QueryParser with Locale Based Operators (French included)

2006-10-29 Thread Chris Hostetter
: 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

Re: [jira] Created: (LUCENE-682) QueryParser with Locale Based Operators (French included)

2006-10-29 Thread Patrick Turcotte
: 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

Re: [jira] Created: (LUCENE-682) QueryParser with Locale Based Operators (French included)

2006-10-29 Thread Chris Hostetter
: 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