Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 73325 invoked from network); 13 Feb 2010 19:34:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Feb 2010 19:34:53 -0000 Received: (qmail 64441 invoked by uid 500); 13 Feb 2010 19:34:51 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 64360 invoked by uid 500); 13 Feb 2010 19:34:51 -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 64141 invoked by uid 99); 13 Feb 2010 19:34:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Feb 2010 19:34:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Feb 2010 19:34:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1A6C3234C4AB for ; Sat, 13 Feb 2010 11:34:28 -0800 (PST) Message-ID: <1714927991.255421266089668107.JavaMail.jira@brutus.apache.org> Date: Sat, 13 Feb 2010 19:34:28 +0000 (UTC) From: "Robert Muir (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-2262) QueryParser should now allow leading '?' wildcards In-Reply-To: <427642378.255231266089187965.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-2262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Muir updated LUCENE-2262: -------------------------------- Attachment: LUCENE-2262.patch initial patch: * doesnt throw the exception for leading ? when matchVersion >= 3.1 * contrib's queryparser doesnt use Version, so i simply change AllowLeadingWildcardProcessor * the backwards tests will fail because LUCENE-2248: TestQueryParser uses LUCENE_CURRENT when it should really be using some constant that resolves to LUCENE_30: we can fix the test to use LUCENE_30 instead of LUCENE_CURRENT > QueryParser should now allow leading '?' wildcards > -------------------------------------------------- > > Key: LUCENE-2262 > URL: https://issues.apache.org/jira/browse/LUCENE-2262 > Project: Lucene - Java > Issue Type: Improvement > Components: QueryParser > Affects Versions: Flex Branch > Reporter: Robert Muir > Assignee: Robert Muir > Priority: Minor > Fix For: Flex Branch > > Attachments: LUCENE-2262.patch > > > QueryParser currently throws an exception if a wildcard term begins with the ? operator. > The docs say this: > {noformat} > When set, * or ? are allowed as the first character of a PrefixQuery and WildcardQuery. > Note that this can produce very slow queries on big indexes. > {noformat} > In the flex branch, this is no longer true. foo?, ?foo, f?oo, these are all the same from a performance perspective. -- 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