Return-Path: Delivered-To: apmail-lucene-solr-user-archive@locus.apache.org Received: (qmail 55044 invoked from network); 6 Jan 2009 18:06:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jan 2009 18:06:10 -0000 Received: (qmail 4771 invoked by uid 500); 6 Jan 2009 18:06:06 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 4741 invoked by uid 500); 6 Jan 2009 18:06:06 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 4730 invoked by uid 99); 6 Jan 2009 18:06:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2009 10:06:05 -0800 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [64.37.152.37] (HELO mail-sd5.ad.soe.sony.com) (64.37.152.37) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2009 18:05:56 +0000 Received: from MAIL-SD1.ad.soe.sony.com ([64.37.152.33]) by mail-sd5.ad.soe.sony.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 6 Jan 2009 10:05:34 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Using query functions against a "type" field Date: Tue, 6 Jan 2009 10:05:34 -0800 Message-ID: <8599F2E4E80ECC44AEE81FA2974CE2BD0C961C30@mail-sd1.ad.soe.sony.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Using query functions against a "type" field Thread-Index: AclwJrAvnHCVweD+QPe8ifSmmsVe2QAAm0rQ References: <8599F2E4E80ECC44AEE81FA2974CE2BD0C596EDF@mail-sd1.ad.soe.sony.com> <8599F2E4E80ECC44AEE81FA2974CE2BD0C961B6C@mail-sd1.ad.soe.sony.com> From: "Feak, Todd" To: X-OriginalArrivalTime: 06 Jan 2009 18:05:34.0479 (UTC) FILETIME=[5EE4C1F0:01C97029] X-Virus-Checked: Checked by ClamAV on apache.org I'm not sure I followed all that Yonik. Are you saying that I can achieve this affect now with a bq setting in my DisMax query instead of via a bf setting? -Todd Feak -----Original Message----- From: Yonik Seeley [mailto:yseeley@gmail.com]=20 Sent: Tuesday, January 06, 2009 9:46 AM To: solr-user@lucene.apache.org Subject: Re: Using query functions against a "type" field On Tue, Jan 6, 2009 at 10:41 AM, Feak, Todd wrote: > The boost queries are true queries, so the amount boost can be affected > by things like term frequency for the query. Sounds like a constant score query is a general way to do this. Possible QParser syntax: {!const}tag:FOO OR tag:BAR Could be implemented via ConstantScoreQuery(QueryWrapperFilter(theQuery)) The value could be the boost, optionally set within this QParser... {!const v=3D2.0}tag:FOO OR tag:BAR -Yonik