Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 53256 invoked from network); 19 Apr 2007 23:02:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Apr 2007 23:02:19 -0000 Received: (qmail 59283 invoked by uid 500); 19 Apr 2007 23:02:20 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 59247 invoked by uid 500); 19 Apr 2007 23:02: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 59222 invoked by uid 99); 19 Apr 2007 23:02:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2007 16:02:20 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.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, 19 Apr 2007 16:02:13 -0700 Received: by rescomp.berkeley.edu (Postfix, from userid 1007) id 46A115B773; Thu, 19 Apr 2007 16:01:53 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by rescomp.berkeley.edu (Postfix) with ESMTP id 3AAF77F403 for ; Thu, 19 Apr 2007 16:01:53 -0700 (PDT) Date: Thu, 19 Apr 2007 16:01:53 -0700 (PDT) From: Chris Hostetter To: java-dev@lucene.apache.org Subject: Re: [jira] Resolved: (LUCENE-730) Restore top level disjunction performance In-Reply-To: <200704182202.42960.paul.elschot@xs4all.nl> Message-ID: References: <6773341.1176847518741.JavaMail.jira@brutus> <200704182202.42960.paul.elschot@xs4all.nl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : With this committed it also makes sense to deprecate the setUseScorer14() : method and the corresponding get...() method. If you want a patch for that, : I'll gladly provide one. i haven't really been able to follow this issue as much as i would like, but docs now sometimes coming out of order and the need to hobble QueryUtils.check(Query,Searcher) because of this alarms me a bit ... i can't really think of all the cases this might cause problems for people, but i'm, sure there may be some (i remember it was kind of a big deal when BooleanScorer2 came out and people could start relying on docs coming in order ... it's why ConstantScoreRangeQuery because a wrapper arround ConstantScoreQuery -- the first version i wrote collected dos in order they were found while walking the TermEnum/TermDocs and people didn't like that this ment they weren't in order) perhaps this patch should be changed to only have this effect (BooleanScorer2 delegating to BooleanScorer) only if BooleanQuery.setUseScorer14(true) has been called -- and the existing use of BooleanQuery.getUseScorer14() to decide between BooleanWeight and BooleanWeight2 can be removed (and BooleanWeight can be deprecated) that way people who are okay with getting docs out of order can call BooleanQuery.setUseScorer14(true) and get the performance benefits when possible, but people who want to be sure they get documents in order have to accept that in some cases their queries arent' as fast asthey could be. ...i believe what i'm suggesting would keep the fundemental meaning of setUseScorer(true), even if the value is now used in a slightly differnet place ... correct? -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org