Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 92E75697E for ; Fri, 24 Jun 2011 23:43:12 +0000 (UTC) Received: (qmail 60876 invoked by uid 500); 24 Jun 2011 23:43:11 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 60803 invoked by uid 500); 24 Jun 2011 23:43:10 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 60791 invoked by uid 99); 24 Jun 2011 23:43:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jun 2011 23:43:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jun 2011 23:43:08 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6537942E75F for ; Fri, 24 Jun 2011 23:42:47 +0000 (UTC) Date: Fri, 24 Jun 2011 23:42:47 +0000 (UTC) From: "Robert Muir (JIRA)" To: dev@lucene.apache.org Message-ID: <1751704570.38999.1308958967411.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <740473059.36687.1308923507376.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (LUCENE-3238) SpanMultiTermQueryWrapper with Prefix Query issue 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-3238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Muir resolved LUCENE-3238. --------------------------------- Resolution: Fixed Fix Version/s: 3.3 thanks Ludovic, nice catch! > SpanMultiTermQueryWrapper with Prefix Query issue > ------------------------------------------------- > > Key: LUCENE-3238 > URL: https://issues.apache.org/jira/browse/LUCENE-3238 > Project: Lucene - Java > Issue Type: Bug > Components: core/search > Affects Versions: 3.3 > Environment: Windows 7, JDK 1.6 > Reporter: ludovic Boutros > Assignee: Robert Muir > Fix For: 3.3 > > Attachments: LUCENE-3238.patch, LUCENE-3238.patch, LUCENE-3238.patch > > > If we try to do a search with SpanQuery and a PrefixQuery this message is returned: > "You can only use SpanMultiTermQueryWrapper with a suitable SpanRewriteMethod." > The problem is in the WildcardQuery rewrite function. > If the wildcard query is a prefix, a new prefix query is created, the rewrite method is set with the SpanRewriteMethod and the prefix query is returned. > But, that's the rewritten prefix query which should be returned: > - return rewritten; > + return rewritten.rewrite(reader); > I will attach a patch with a unit test included. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org