Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 57708 invoked from network); 7 Oct 2009 09:16:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Oct 2009 09:16:21 -0000 Received: (qmail 54843 invoked by uid 500); 7 Oct 2009 09:16:20 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 54772 invoked by uid 500); 7 Oct 2009 09:16:20 -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 54762 invoked by uid 99); 7 Oct 2009 09:16:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Oct 2009 09:16:20 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [209.85.210.188] (HELO mail-yx0-f188.google.com) (209.85.210.188) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Oct 2009 09:16:10 +0000 Received: by yxe26 with SMTP id 26so4771900yxe.20 for ; Wed, 07 Oct 2009 02:15:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.28.10 with SMTP id f10mr4188774ybj.323.1254906948811; Wed, 07 Oct 2009 02:15:48 -0700 (PDT) In-Reply-To: <8f0ad1f30910061922t1f17366ck3cdb2eec21618be@mail.gmail.com> References: <8f0ad1f30910061922t1f17366ck3cdb2eec21618be@mail.gmail.com> Date: Wed, 7 Oct 2009 05:15:48 -0400 Message-ID: <9ac0c6aa0910070215j42deb73g5a39ad61d9798866@mail.gmail.com> Subject: Re: wildcardquery rewrite() From: Michael McCandless To: java-dev@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I agree, this looks like a bug (boost & constant-score-ness is lost) -- wanna open an issue & patch it? Mike On Tue, Oct 6, 2009 at 10:22 PM, Robert Muir wrote: > someone asked this question on the user list: > http://www.lucidimagination.com/search/document/6f38de391b242102/prefixqu= ery_vs_wildcardquery > > it made me look at the wildcard rewrite(), where i see this: > =A0 =A0if (!termContainsWildcard) > =A0 =A0 =A0return new TermQuery(getTerm()); > > is it a problem the boost is not preserved in this special case? > > is it also a problem that if the user sets the default MultiTermQuery > rewriteMethod to say, CONSTANT_SCORE_FILTER_REWRITE, > that this rewritten TermQuery isn't wrapped with a constant score? > > Sorry if it seems a bit nitpicky, really the issue is that I want to > do the right thing for a more complex query I am working on, but don't > want to overkill either. > -- > Robert Muir > rcmuir@gmail.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-dev-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org