Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 86244 invoked from network); 23 Feb 2007 23:32:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Feb 2007 23:32:30 -0000 Received: (qmail 70394 invoked by uid 500); 23 Feb 2007 23:32:38 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 69830 invoked by uid 500); 23 Feb 2007 23:32:36 -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 69497 invoked by uid 99); 23 Feb 2007 23:32:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Feb 2007 15:32:35 -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; Fri, 23 Feb 2007 15:32:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B2BEF7140D1 for ; Fri, 23 Feb 2007 15:32:05 -0800 (PST) Message-ID: <14680625.1172273525729.JavaMail.jira@brutus> Date: Fri, 23 Feb 2007 15:32:05 -0800 (PST) From: "Doron Cohen (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-813) leading wildcard's don't work with trailing wildcard In-Reply-To: <28446430.1172210465525.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 [ https://issues.apache.org/jira/browse/LUCENE-813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475540 ] Doron Cohen commented on LUCENE-813: ------------------------------------ I fixed the PREFIX definition in QueryParser.jj, changed: (<_TERM_START_CHAR> | "*") (<_TERM_CHAR>)* "*" > to ("*") | ( <_TERM_START_CHAR> (<_TERM_CHAR>)* "*" ) > which I think is more correct, and this solved the problem. However this caused another parsing test (testSimple) to fail - aparently from other reasons: the standard analyzer used in that test is lower casing the query tokens, which have umlauts - and this fails, because the lower casing is done char by char (Character.lowercase). I think that the wrong definition of PREFIXTERM was masking this behavior before. I am not sure yet if this is a bug, but for testSimple to pass for now I would modify the test to use a non lowercasing analyzer when umlauts are present. Please comment if you think this is a bug. Another tehnical issue that came up is line endings - compiling on XP, using cygwin, the javacc result files had wrong line endings. Fixed that with perl -p -e 's/(\r\n|\n|\r)/\n/g' QueryParser.java_fromJavacc > QueryParser,java Do others have this problem? Is there is a standard solution for this (other than installing *Nix?) If not I may look into allowing to fix this by build.xml. Will have a patch with the fix later today. > leading wildcard's don't work with trailing wildcard > ---------------------------------------------------- > > Key: LUCENE-813 > URL: https://issues.apache.org/jira/browse/LUCENE-813 > Project: Lucene - Java > Issue Type: Bug > Reporter: Hoss Man > Assigned To: Doron Cohen > Attachments: qp-leading-wildcard.patch > > > As reported by Antony Bowesman, leading wildcards don't work when there is a trailing wildcard character -- instead a PrefixQuery is constructed. > http://www.nabble.com/QueryParser-bug--tf3270956.html -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org