Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 12897 invoked from network); 7 Dec 2006 04:12:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Dec 2006 04:12:47 -0000 Received: (qmail 14627 invoked by uid 500); 7 Dec 2006 04:12:52 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 14590 invoked by uid 500); 7 Dec 2006 04:12:52 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 14571 invoked by uid 99); 7 Dec 2006 04:12:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Dec 2006 20:12:52 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Dec 2006 20:12:43 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 26C577142F6 for ; Wed, 6 Dec 2006 20:12:23 -0800 (PST) Message-ID: <18019310.1165464743156.JavaMail.jira@brutus> Date: Wed, 6 Dec 2006 20:12:23 -0800 (PST) From: "Yonik Seeley (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-682) QueryParser with Locale Based Operators (French included) In-Reply-To: <4904499.1160772695168.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/LUCENE-682?page=comments#action_12456295 ] Yonik Seeley commented on LUCENE-682: ------------------------------------- That's untested code of course... I just noticed that case '\\' : b.append(s.charAt(++i)); break; case '\'' : inString=!inString; break; should probably be case '"': if (++i 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 > Components: QueryParser > Reporter: Patrick Turcotte > Assigned To: Hoss Man > Priority: Minor > Attachments: LocalizedQueryParser.patch, LocalizedQueryParser.patch, LocalizedQueryParser.zip, LocalizedQueryParserDemo.java, LocalizedQueryParserOperatorsMicroBench.java, QueryParser.jj, QueryParser.jj.patch, QueryParser.properties, QueryParser_fr.properties, TestQueryParserLocaleOperators.java > > > Here is a version of the QueryParser that can "understand" the AND, OR and NOT keyword in other languages. > If activated, > - "a ET b" should return the same query as "a AND b", namely: "+a +b" > - "a OU b" should return the same query as "a OR b", namely: "a b" > - "a SAUF b" should return the same query as "a NOT b", namely: "a -b" > Here are its main points : > 1) Patched from revision 454774 of lucene 2.1dev (trunk) (probably could be used with other versions) > 2) The "ant test" target is still successful when the modified QueryParser is used > 3) It doesn't break actual code > 4) The default behavior is the same as before > 5) It has to be deliberately activated > 6) It use ResourceBundle to find the keywords translation > 7) Comes with FRENCH translation > 8) Comes with JUnit testCases > 9) Adds 1 public method to QueryParser > 10) Expands the TOKEN > 11) Use TOKEN_MGR_DECLS to set some field for the TokenManager -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org