Return-Path: Delivered-To: apmail-jakarta-lucene-dev-archive@www.apache.org Received: (qmail 46969 invoked from network); 11 Jan 2005 21:13:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Jan 2005 21:13:15 -0000 Received: (qmail 143 invoked by uid 500); 11 Jan 2005 21:13:14 -0000 Delivered-To: apmail-jakarta-lucene-dev-archive@jakarta.apache.org Received: (qmail 99874 invoked by uid 500); 11 Jan 2005 21:13:13 -0000 Mailing-List: contact lucene-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Developers List" Reply-To: "Lucene Developers List" Delivered-To: mailing list lucene-dev@jakarta.apache.org Received: (qmail 99861 invoked by uid 99); 11 Jan 2005 21:13:13 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from rwcrmhc13.comcast.net (HELO rwcrmhc13.comcast.net) (204.127.198.39) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 11 Jan 2005 13:13:12 -0800 Received: from [192.168.168.81] (c-24-5-160-217.client.comcast.net[24.5.160.217]) by comcast.net (rwcrmhc13) with ESMTP id <2005011121131001500n8jece>; Tue, 11 Jan 2005 21:13:10 +0000 Message-ID: <41E44166.1050103@apache.org> Date: Tue, 11 Jan 2005 13:13:10 -0800 From: Doug Cutting User-Agent: Mozilla Thunderbird 0.9 (X11/20041127) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lucene Developers List Subject: Re: How to proceed with Bug 31841 - MultiSearcher problems with Similarity.docFreq() ? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Chuck Williams wrote: > As Wolf does, I hope a committer with deep knowledge of Lucene's design > in this area will weigh in on the issue and help to resolve it. The root of the bug is in MultiSearcher.search(). This should construct a Weight, weight the query, then score the now-weighted query. Here's a potential way to fix it: 1. Replace all of the ... search(Query, ...) methods in Searchable.java with ... search(Weight, ...) methods. 2. Add search(Query, ...) convenience methods to Searcher.java which do something like: public ... search(Query query, ...) { return search(query.weight(this), ...); } 3. Update the search() methods in IndexSearcher, MultiSearcher and RemoteSearchable to operate on Weight's instead of queries. Does that make sense? Doug --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-dev-help@jakarta.apache.org