Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 58299 invoked from network); 15 Jun 2006 22:27:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Jun 2006 22:27:50 -0000 Received: (qmail 95856 invoked by uid 500); 15 Jun 2006 22:27:46 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 95818 invoked by uid 500); 15 Jun 2006 22:27:46 -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 95807 invoked by uid 99); 15 Jun 2006 22:27:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jun 2006 15:27:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [169.229.70.167] (HELO rescomp.berkeley.edu) (169.229.70.167) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Jun 2006 15:27:45 -0700 Received: by rescomp.berkeley.edu (Postfix, from userid 1007) id 7B9C65B779; Thu, 15 Jun 2006 15:27:08 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by rescomp.berkeley.edu (Postfix) with ESMTP id 6608A7F403 for ; Thu, 15 Jun 2006 15:27:08 -0700 (PDT) Date: Thu, 15 Jun 2006 15:27:08 -0700 (PDT) From: Chris Hostetter To: Lucene Dev Subject: Seeking feedback on LUCENE-557 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Regarding "search vs explain - score discrepancies"... http://issues.apache.org/jira/browse/LUCENE-557 ...I got sidetracked by a pesky anoyance called "work" for a little while, but I'm looking at this again, and I'd like to commit some varient of the patches I added to that bug -- the notable exception being to remove the tests that fail because of LUCENE-451 (which I hope to tackle next) and attach them to that issue -- but before I commit anything, I was wondering if folks could give me a little feedback on two issues I'm not 100% confident of... 1) Modifying existing search tests to implicitly check explain LUCENE-557-modify-existing-tests.patch modifies (almost) every core test I could find that used an IndexSearcher to use a modified IndexSearcher that implicitly tests explanations as well. I mainly wrote this to help me spot the problem queries when writing new test classes, but I'm wondering what people think about commiting this change. It essentially boils down to this... - Searcher searcher = new IndexSearcher(directory); + Searcher searcher = new CheckHits.ExplanationAssertingSearcher(directory); ...across 43 Test classes. Should those changes be committed? Part of me says "no" because it's kind of ugly, but another part of me says "yes" because it's the best way to ensure that as fuctionality evolves, future committers will be alerted if they cahnge the search behavior of query without making corrisponding hanges to the explain behavior. 2) SpanScorer.explain HACK fix NearSpans.skipTo is broken (see LUCENE-569). This apparently doesn't affect too many people (or if it does, they haven't been filing bugs about it) but it does make SpanScorer.explain lie. I don't understand SpanQueries enough to feel comfortable fixing LUCENE-569 (even though paul.elschot has pointed out an alternate version of NearSpans that doesn't have this bug) but I do have a HACK patch for SpanScorer.explain that works arround the bug by just looping over NearSpans.next instead of using NearSpans.skipTo. Should This HACK be commited, or is it better to leave explanations for SpanNear queries broken untill someone has the confidence to fix LUCENE-569? -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org