Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 34624 invoked from network); 11 Jun 2008 13:50:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jun 2008 13:50:19 -0000 Received: (qmail 50257 invoked by uid 500); 11 Jun 2008 13:50:15 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 50218 invoked by uid 500); 11 Jun 2008 13:50:15 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 50207 invoked by uid 99); 11 Jun 2008 13:50:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2008 06:50:15 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 194.109.24.32 is neither permitted nor denied by domain of karl.wettin@gmail.com) Received: from [194.109.24.32] (HELO smtp-vbr12.xs4all.nl) (194.109.24.32) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2008 13:49:25 +0000 Received: from [10.0.2.2] (memnon.xs4all.nl [82.93.70.124]) by smtp-vbr12.xs4all.nl (8.13.8/8.13.8) with ESMTP id m5BDnc3j091417 for ; Wed, 11 Jun 2008 15:49:38 +0200 (CEST) (envelope-from karl.wettin@gmail.com) Message-Id: <7F13990A-964E-4B5E-9EB1-19F3FE107551@gmail.com> From: Karl Wettin To: java-user@lucene.apache.org In-Reply-To: <200806110914.32732.paul.elschot@xs4all.nl> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: Scoring filters Date: Wed, 11 Jun 2008 15:49:37 +0200 References: <5BE05F9C-D345-4A7F-86CA-B2980E98945D@gmail.com> <200806110914.32732.paul.elschot@xs4all.nl> X-Mailer: Apple Mail (2.919.2) X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked by ClamAV on apache.org 11 jun 2008 kl. 09.14 skrev Paul Elschot: > Op Wednesday 11 June 2008 01:41:38 schreef Karl Wettin: >> Each of my filters represent single boosting term queries. But when >> using the filter instead o the boosting term query I loose the score >> (not sure this is true) and payload boost (if any), both essential >> for the quality of my results. If I was to add payloads to the bits >> that are set, what is the best or simplest way to get the score back >> in? How about wrapping each filter in a query? >> >> Are there any obvious problems with this strategy that I've missed? > > Why not add the boosting term queries as required > to a BooleanQuery? This has the advantage that it uses the > index data and the various caches built into Lucene and the > underlying OS. It used to be like that. But some of my terms occurs in 50% of all the documents and it took a very long time to match them, so I replace any such clause with a filter. > In case you have the memory available, it is also possible to keep > the score values of any Query with the Filter and implement a Scorer > using the filter docs and these score values. Then use this as the > scorer for a new Query, via a Weight. > Once this new Query is available, just add it as required to a > BooleanQuery. That I'll do. Thanks! karl --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org